question: 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 ; }
target:  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