Replies: 1 comment 1 reply
-
Capitals
But I'm open to any suggestion solving the problems mentioned above consistently. Threads But if you want to incrementally update your dictionary with CreateDictionaryEntry, then both Lookup and CreateDictionaryEntry have to be synchronized by locks. While you could use a simple Lock(), a ReaderWriterLockSlim ensures better performance, because it still allows multiple Lookups in parallel: |
Beta Was this translation helpful? Give feedback.
-
Thanks for the library, very useful. So far it seems to be much better than NetSpell and hunspell and aspell , which is impressive for such a small code base.
It would be good to have capitals in the dictionaries; it's useful for recognizing proper words. Also if I'm only reading from the dictionary, doing lookups etc, is it thread safe? I wouldn't expect it to be while entering data into the dictionary, but if I'm just reading can I use one dictionary from multiple threads?
Cheers,
Beta Was this translation helpful? Give feedback.
All reactions