barrust / pyspellchecker

Pure Python Spell Checking http://pyspellchecker.readthedocs.io/en/latest/
MIT License
714 stars 164 forks source link

Word Frequency Threshold #16

Closed barrust closed 6 years ago

barrust commented 6 years ago

Per a comment by @ksingha5 in #'12, it would be nice to have the ability to remove all words under a certain threshold.

something like:

from spellchecker import SpellChecker
spell = SpellChecker()
spell.word_frequency.remove_by_threshold(10)  # remove all words that have 10 or fewer instances
barrust commented 6 years ago

resolved by #19