private static List<String> rewriteTermBruteForce(String term){
  List<String> termsList=rewriteBrute(term);
  if (term == "" || !term.equals(termsList.get(termsList.size() - 1)))   termsList.add(term);
  return termsList;
}

private static List < String > rewriteTermBruteForce ( String term ) { List < String > termsList = rewriteBrute ( term ) ; if ( term == "" || ! term . equals ( termsList . get ( termsList . size ( ) - 1 ) ) ) termsList . add ( term ) ; return termsList ; }
wrapper over main recursive method , rewritebrute which performs the fuzzy tokenization of a term the original term may not be a valid dictionary word , but be a term particular to the database the method rewritebrute only considers terms which are valid dictionary words in case original term is not a dictionary word , it will not be added to querylist by method rewritebrute this wrapper ensures that if rewritebrute does not include the original term , it will still be included for example , for the term " newyork " , rewritebrute will return the list < " new york " > but " newyork " also needs to be included in the list to support particular user queries this wrapper includes " newyork " in this list
