def pluralize_single_word()

in src/util/shorten_topic_length.py [0:0]


    def pluralize_single_word(self, phrase, document_words_lower):
        words = phrase.split()
        new_words = []
        if len(words) > 1: # for now only look at single word cases
            return phrase
        for word in words:
            if word[-1] != 's':
                if (word.lower() + 's') in document_words_lower:
                    word = word + 's'
            new_words.append(word)
        return " ".join(new_words)