NGram processor for simple text