cfinke / Typo.js

A client-side JavaScript spellchecker that uses Hunspell-style dictionaries.
Other
501 stars 110 forks source link

Does not suggest accents and don't use `REP` statement (in french) #58

Open jguillon opened 7 years ago

jguillon commented 7 years ago

Hi,

When I ask suggestions of a word that is missing an accent, I don't obtain the right word:

dico.suggest('completement')
// ["comportement"] // instead of "complètement"
dico.suggest('buche')
// ["bruche", "bouche", "muche", "huche", "boche"] // instead of "bûche" 

Also, even though those statement are present in my fr_FR.aff file, they are not used by the suggestion engine:

REP faisez$ faites
REP puit puits

when tried, those words output this:

dico.suggest('faisez')
// ["faisiez", "fraisez", "taisez", "frisez", "baisez"]
dico.suggest('puit')
// ["punit", "puait", "put", "putt", "duit"]

Did I miss a configuration step? Are my .aff + .dic files wrong?

Thank you for your help.

Best, GJ.