Recognizers-Text
Recognizers-Text copied to clipboard
[EN Choice] Does not recognize 'N' as false, even though 'Y' is recognized as true
Describe the bug English Choice does not recognize 'N' as false, even though 'Y' is recognized as true.
To Reproduce Steps to reproduce the behavior:
- Use the Choice recognizer with "en-en" to process the string "N" as input.
- Response does not recognize any valid values.
Expected behavior Expected: a return value of false.
Platform (please complete the following information):
- Platform: Javascript
- Environment: npmjs
- Version of package (latest)
Additional context See https://github.com/microsoft/Recognizers-Text/blob/master/Patterns/English/English-Choice.yaml for the regex for English Choice. See https://github.com/microsoft/Recognizers-Text/blob/master/Specs/Choice/English/BooleanModel.json for where to add a test to confirm the change works.