deepmoji/word_generator.py
def check_ascii(self, word):
        """ Returns whether a word is ASCII """

        try:
            word.encode().decode('ascii')
            return True
        except (UnicodeDecodeError, UnicodeEncodeError):
            return False
 Returns whether a word is ASCII 
Returns whether a word is ASCII
Returns whether a word is ASCII
def check_ascii(self, word):
        try:
            word.encode().decode('ascii')
            return True
        except (UnicodeDecodeError, UnicodeEncodeError):
            return False
def check_ascii ( self , word ) : try : word . encode ( ) . decode ( 'ascii' ) return True except ( UnicodeDecodeError , UnicodeEncodeError ) : return False
Returns whether a word is ASCII
Returns whether a word is ASCII
""" Returns whether a word is ASCII """
self
word