Some minor problems with grammar.

  • Hi Mike, great code!

    It works fine for me in general but I´m having problems when a word begins with "and" or with "or" like "orthopedics".

    I´ve change, in SearchGrammar.cs OrOperator.Rule = Symbol("or") for OrOperator.Rule = Symbol("or ") (note the blank space after the "or") and it works, but I´m not sure its a good solution.

    I´m also having problems is with one letter words, if you search "when I grow up" doesn´t return any result, but if you search "when grow up" it returns matching records including the one who has "when I grow up". FORMSOF (INFLECTIONAL, I) returns nothing.

    Thanks,

    Marcelo.

  • mceitlin (5/31/2010)


    Hi Mike, great code!

    It works fine for me in general but I´m having problems when a word begins with "and" or with "or" like "orthopedics".

    I´ve change, in SearchGrammar.cs OrOperator.Rule = Symbol("or") for OrOperator.Rule = Symbol("or ") (note the blank space after the "or") and it works, but I´m not sure its a good solution.

    I´m also having problems is with one letter words, if you search "when I grow up" doesn´t return any result, but if you search "when grow up" it returns matching records including the one who has "when I grow up". FORMSOF (INFLECTIONAL, I) returns nothing.

    Thanks,

    Marcelo.

    Hi Marcelo,

    Thanks, appreciate the feedback. There's a fix for that issue as well as some other improvements in the latest version of the grammar at the CodePlex website ("Irony" project). There was also a temporary fix somewhere earlier in this thread, but I'd recommend getting the latest version from the Irony CodePlex site.

    Thanks

    Mike C

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply