def isUnique(self, word):
        """
        check if a word is unique.
        :type word: str
        :rtype: bool
        """
        abb = self.getAbb(word)
        hasAbbr = self.abb_dic.get(abb, None)
        return hasAbbr == None or (hasAbbr and word in self.dictionary)

        check if a word is unique.
        :type word: str
        :rtype: bool
        
python/288_Unique_Word_Abbreviation.py