variant which caches ngrams
basics for more substantial testing