nuspell / nuspell

🖋️ Fast and safe spellchecking C++ library
https://nuspell.github.io
GNU Lesser General Public License v3.0
227 stars 25 forks source link

Keep additional Boolean data for words #102

Open dimztimz opened 3 years ago

dimztimz commented 3 years ago

For each word we already keep a set of flags. We can keep additional data as a structure of Boolean variables where each Boolean variable represents the existence of special flags in the flag-set of the word. Code where the existence of special flags is queried can be replaced by checking a Boolean. This give us nice overall speedup for checking words. This internal feature should additionaly make easier to implement personal dictionaries.