Skip to content

Conversation

@17000cyh
Copy link
Contributor

This code is trying to fix issue #2664. This issue was fixed in version 1.8.0. However, the modification may be not exactly correct because when people say "两百多", they always mean a number between 200 and 300, instead of a number simply more than 200. I try to fix this problem.

I solve this problem by:

1. Separate Chinese OneNumberRangeMoreRegex3 into two part and create OneNumberRangeMoreRege4

2. Register a new range number type ABOUT in NumberRangeConstants

3. Register a new parse method in Parser for parsing ABOUT type number

Please run the SimpleConsole to see an example of my modification.

In order to solve #issus2664, separate OneNumberRangeMoreRegex3 to tow regexs.
Add a type "About" for number like "三万多"
Register method for dealing with type "ABOUT".
Register "ABOUT" property for "三万余"
Add a ChineseNumberRange sample.
Add NegativeNumberTermsRegex to some regexes to fix microsoft#2667
@ghost
Copy link

ghost commented Oct 20, 2021

CLA assistant check
All CLA requirements met.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant