def ngrams(word, n):
    """Creates n-grams for a string, returning a list.
     :param word: str - A word or string to ngram.
     :param n: - n-gram length
     :returns: list of strings
    """
    ans = []
    word = word.split(' ')
    for i in range(len(word) - n + 1):
        ans.append(word[i:i + n])
    return ans