|
> bad > "I need a new pair of size 12 boots " > Good Example > "BOOTS, #519, SIZE 12D " I'm not trying to oversimplify this, but is the good example the only acceptable way? Maybe you could write a set of rules that does not depend on the noun issue? It sounds like an inventory, so there must be a ways to verify the pieces of the string. Tokenize the string by commas and work with the pieces: verify piece2 is a valid inventory code -- verify piece1 is correct for piece2 ---- verify piece3 is a valid option for piece2/piece1 This is just random thought process, but you would need a complete grammer and context editor to be able to do what you are looking for. It would be more successful if you could simply validate the incoming format and then the incoming data. Just thinking... Joel http://www.rpgnext.com
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.