java - from free text to list of value -
i'm implementing web application supscription form (using java backend). in form there field dropdown list associated it. user has possibility (with auto-completion functionality) select value dropdown list or insert different value (free text). if user has entered value not included in dropdown list, verify if value entered user "has same meaning" 1 of dropdown list in order standardize it. there method or product leverage on perform "data quality" activity? let me following example:
in dropdown list i've several brands, including louis vitton. user doesn't care avout value "dolce & gabbana" suggested auto-completion functionality , insert "dolce , gabbana".
i have method/tool understand "dolce , gabbana" has same meaning of "dolce & gabbana".
hope clear.
thank you
davide
your problem sounds interesting , practical, have simple solution problem . first need identified word or characters user can insert conjugate words , need remove them , similar items list , compare converted (removed chars user input ) ignoring case list items (in removed chars or words). explain taking values have mention in requirement. user have entered =>"dolce , gabbana" convetred "dolcegabbana" uservalue same time convert value => dolce & gabbana "dolcegabbana" yourvalue compare
yourvalue.equalsignorecase(user's converted value)=true.
to make thing more practical need store list map in key part or map converted string . given below
itemmap.put("dolcegabbana","dolce & gabbana")
Comments
Post a Comment