How to test NPC Parser: Difference between revisions

Content deleted Content added
imported>MartinFuchs
mNo edit summary
imported>MartinFuchs
remove type matching, replace standard by merged expression matching
Line 26:
if you use exact matching, it does not match:
 
* Standard expression matching compares the normalized expressions (not looking at concrete item numbers for example).
* Controlled matching allows to specify the matching type by leading type flags like "|JOKER|", "|SIMILAR|" or "|EXACT|ICASE|".
* Joker matching allows to use "*" wildcards as placeholder for arbitrary expressions.
* Exact matching only matches sentences if all of the expressions in the sentence exactly match them in the match string.
* Case insensitive matching behaves like exact matching, but does not look on upper/lower case.
* Similarity matching allows the user some spelling errors. It matches if there are not too many character differences in each of the constituting words of the user input string.
* Controlled matching allows to specify the matching type by leading type flags like "|JOKER|", "|SIMILAR|" or "|EXACT|ICASE|".
* Type expression matching only compares expression types. (TODO: find a good example)
* StandardMerged expression matching compares the normalized expressions, (not looking at e.g. concrete item numbers for example).
 
If you use any of this extended matching types in your code, it may be helpful to use the matching string, e.g. "|JOKER|buy * bananas" in the display field.