static private function ngramsAsArray(string $sep, array $ngrams) : array {
        $ngramsArray = array();
        foreach($ngrams as $key => $ngram) {
            $ngramsArray[] = explode($sep, $ngram);
        }
        return $ngramsArray;
    }