Recognizers-Text icon indicating copy to clipboard operation
Recognizers-Text copied to clipboard

[EN Choice] Does not recognize 'N' as false, even though 'Y' is recognized as true

Open lslalbai opened this issue 3 years ago • 0 comments

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:

  1. Use the Choice recognizer with "en-en" to process the string "N" as input.
  2. 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.

lslalbai avatar Apr 28 '22 18:04 lslalbai