This rule removes leading and trailing white space from a string and changes multiple spaces in the middle of a string to a single space. The syntax for normalizeSpace is:
<normalizeSpace/> |
The following sample removes the leading and trailing white space from a last name field prior to checking the input value against the surnames.txt file.
<matcher> <preProcessing> <normalizeSpace/> </preProcessing> <lexicon resource="surnames.txt"/> </matcher> |