def _check_spelling(self, word, words): """Check that the word is spelled correctly""" if "words" not in dir(self): wordlist= open(IMP.get_data_path("linux.words"), "r").read().split("\n") # why is "all" missing on my mac? custom_words=["info", "prechange", "int", "ints", "optimizeds", "graphviz", "voxel", "voxels", "endian", 'rna', 'dna', "xyzr", "pdbs", "fft", "ccc"] self.words=set(wordlist+custom_words) if self.words: for i in "0123456789": if i in word: return True if word in words: return True if word in self.words: return True else: return False else: return True