title: Python Spell Checker
body: <p>I need a spell checker in python.
  I've looked at previous answers and they all seem to be outdated now or not applicable:</p>
  
  <p><a href="https://stackoverflow.com/questions/7817159/python-spell-checker-using-a-trie">Python spell checker using a trie</a> This question is more about the data structure.</p>
  
  <p><a href="https://stackoverflow.com/questions/35678327/python-spell-checker">Python Spell Checker</a> This is a spelling corrector, given two strings.</p>
  
  <p><a href="http://norvig.com/spell-correct.html" rel="nofollow noreferrer">http://norvig.com/spell-correct.html</a> Often referenced and quite interesting, but also a spelling corrector, and accuracy isn't quite good enough, though I'll probably use this in combination with an checker.</p>
  
  <p><a href="https://stackoverflow.com/questions/13928155/spell-checker-for-python">Spell Checker for Python</a> Uses pyenchant which isn't maintained anymore. </p>
  
  <p><a href="https://stackoverflow.com/questions/4500752/python-check-whether-a-word-is-spelled-correctly">Python: check whether a word is spelled correctly</a> Also suggests Pyenchant which isn't maintained.</p>
  
  <p>Some details of what I need:</p>
  
  <ul>
  <li>A function that accepts a string (word) and returns a boolean whether the word is valid English of not. The unit test would want True on an input of "car" and False on an input of "ijjk".</li>
  <li>Accuracy needs to be above 90%, but not higher than that. I'm just using this to exclude words during preprocessing for document classification. Most of the errors will be picked up anyway as words that appear too seldom (though not all.). Spell correcting won't work in all cases because a lot of the errors are OCR issues that are too far off to fix.</li>
  <li>If it can deal with legal terms that would be a big plus. Otherwise I might need to manually add certain terms to the dictionary.</li>
  </ul>
  
  <p>What's the best approach here? Are there any maintained libraries? Do I need to download a dictionary and check against it?</p>