number-parser icon indicating copy to clipboard operation
number-parser copied to clipboard

Probably incorrect parsing with "and" in English: "thirty and six" -> 36

Open espdev opened this issue 9 months ago • 1 comments

Hello,

It seems that for numerals, it is not correct to parse numbers that have "and" between them as single numbers. For example:

  • "thirty and six" -> 36
  • "twenty and seven" -> 27

That's not how English-speaking people pronounce numbers with tens in English. This is true for numbers greater than a hundred, but not for numbers up to a hundred, for example: "one hundred and twenty-six" -> 126.

We have encountered a problem in our system where users say two numbers through "and" and we take it as one number (because we use number-parser for post-processing STT result), even though there should be two numbers.

It would be great if we could configure parsing rules and disable anything.

espdev avatar Feb 26 '25 13:02 espdev