def remove_words(self, words):
     words = [ENSURE_UNICODE(w) for w in words]
     for word in words:
         self._dictionary.pop(word.lower())
     self._update_dictionary()
 def remove(self, word):
     word = ENSURE_UNICODE(word)
     self._dictionary.pop(word.lower())
     self._update_dictionary()
 def add(self, word):
     word = ENSURE_UNICODE(word)
     self.load_words([word])
 def load_words(self, words):
     words = [ENSURE_UNICODE(w) for w in words]
     self._dictionary.update([word.lower() for word in words])
     self._update_dictionary()
 def pop(self, key, default=None):
     key = ENSURE_UNICODE(key)
     key = key.lower()
     return self._dictionary.pop(key, default)
 def __getitem__(self, key):
     key = ENSURE_UNICODE(key)
     key = key.lower()
     return self._dictionary[key]
 def __contains__(self, key):
     key = ENSURE_UNICODE(key)
     key = key.lower()
     return key in self._dictionary