implemented newline parse as ngram