Closed s-a closed 7 years ago
Whether names are detected depends on the dictionary you’re using, and how it’s set up. Both en_GB
and en_US
contain lots of properly cased names (Stephan
too), and there’s no way to ignore some part of the dictionary.
You could create a personal dictionary, and forbid a big list of names (*Stephan\n*Stephanie\n...
), or, modify the .dic
file you pass in?
Unfortunately I try to detect names in a list of words, so it is not possible to declare a blacklist. But thanks for your detailed description.
While
console.log(spell.correct('Stephan')); //=> true
andconsole.log(spell.correct('stephan')); //=> false
there might be some name detection innspell
. Does there exists a way to configurenspell
thatconsole.log(spell.correct('Stephan'));
yieldsfalse
? I need a way to ignore names.