title: Python: Is there any rule can protect some words not to be processed in data preprocessing step
body: <p>I am a beginner and doing some data preprocessing work for textual data. There are some mistakes in there.
  For example, the autospell step will make error corrections for some particular proper nouns.</p>
  <pre><code>from autocorrect import spell
  
  def autospell(text):
      spells = [spell(w) for w in (nltk.word_tokenize(text))]
      return &quot; &quot;.join(spells)
  
  def main():
      text = &quot;skyrim&quot;
      spell_text = autospell(text)
      print (spell_text)
  </code></pre>
  <p>Result: syria</p>
  <p>Moreover, I also want to avoid removing numbers only for the word &quot;E3&quot;.</p>
  <pre><code>def remove_numbers(text):
      output = ''.join(c for c in text if not c.isdigit())
      return output
  def main():
      text = &quot;in 2000, I am watching the E3&quot;
      print (remove_numbers(text))
  </code></pre>
  <p>Result: in , I am watching the E</p>
  <p>So, I'd like to ask that is there any rule for me to set to protect such words (proper nouns) avoid from being processed.</p>