List<String> get generateSearchTerms{ List<String> terms = []; for (int i = 0; i < length; i++) { for (int j = 0; j < length - i; j++) { terms.add(substring(j, i + j + 1)); } } return terms; }