get method
Implementation
String? get(int n) {
if (capitalword) {
return null;
}
if (n < 1 || n > nGram || grams.length < n) {
return null;
}
if (n == 1) {
String ch = grams[grams.length - 1];
if (ch == ' ') {
return null;
}
return ch;
} else {
return grams.substring(grams.length - n);
}
}