Skip to content

Limit the length of factoids #11

@gunnbr

Description

@gunnbr

Right now, any question asked is viewed as a factoid and any statement with an 'is' or 'are' is viewed as setting a factoid.

To limit the number of false factoid triggers and keep many invalid factoids from being entered into the DB, limit the length of a factoid.

Need to figure out what is an appropriate length for a factoid limit. Try using one of these queries for MySql or SQL SErver:

SELECT LEN(Item) as FactoidLength, * FROM  Factoid ORDER BY LEN(Item) DESC, Item;
SELECT LENGTH(Item) as FactoidLength, * FROM  Factoid ORDER BY LENGTH(Item) DESC, Item;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions