public boolean contains ( String [ ] words ) { if ( words . length == 1 ) { return wordMap . contains ( words [ 0 ] ) ; } else { NGram ngram = nGramFactory . createNGram ( words ) ; if ( ngram == null ) { return false ; } else { return gramSet . contains ( ngram ) ; } } }
Returns true if this dictionary contains the n - gram consisting of the specified words .