Compromise: 'include' mis-conjugation

Created on 25 Mar 2020  路  4Comments  路  Source: spencermountain/compromise

Is it possible to overwrite a word in the lexicon?

For example, the word "includes" does not change tense correctly:

{
  PresentTense: "includs", 
  PastTense: "includded", 
  Gerund: "includding", 
  Infinitive: "includ", 
  FutureTense: "will includ"
}

I'd like to be able to overwrite this behavior with a custom word in the lexicon so it will translate properly.

bug fixed-on-dev

All 4 comments

hey Doug, good catch.
Yep, changing the lexicon should be a straightforward thing. That conjugation looks like a bug, I'm happy to fix it.
thanks

Thanks!

Is there a reference somewhere of the shape of all the words in the lexicon and how to overwrite them? It's not clear how I would overwrite each tense.

yeah, there's not a good resource for that. You can look at the lexicon-generation here or print-out the whole lexicon with

nlp.world().words

cheers

include is fixed in 13.3.0

Was this page helpful?
0 / 5 - 0 ratings

Related issues

charles-toller picture charles-toller  路  3Comments

drhayes picture drhayes  路  4Comments

josephrocca picture josephrocca  路  5Comments

nelson-liu picture nelson-liu  路  3Comments

MarkHerhold picture MarkHerhold  路  5Comments