class Bundler::SimilarityDetector
def similar_word_list(word, limit = 3)
return the result of 'similar_words', concatenated into a list
def similar_word_list(word, limit = 3) words = similar_words(word, limit) if words.length == 1 words[0] elsif words.length > 1 [words[0..-2].join(", "), words[-1]].join(" or ") end end