Convert number words from different languages with Python, Sharp or Java API eg. three hundred and forty two to numbers (342) or vingt-et-un (21) or две целых три десятых (2.3).Word2Number-i18n convert number words (eg. twenty one) to numeric digits (21).
Word to Number i18n is a full new implementation of great Python word2number module for English and other languages sentences. In result of this work it
The implementation want to be that
Hello World
Word to Number i18n convert number words from different languages with different programming languages eg. three hundred and forty two to numbers (342) or vingt-et-un (21) or две целых три десятых (2.3).
This is a part-feature-list of some features you would be see in result of compare the similar languages implementations. It does not mean these features are bad or good.
String
to double
localization information is ignored (Locale
) and the dot is needed.
double doubleValue = Double.valueOf(decimalValueWithPoint);
string
to double
the right localization information in the background exists (CultureInfo
).
double doubleValue; double.TryParse (pointDelimitedDecimalValue, NumberStyles.Any,CultureInfo.InvariantCulture, out doubleValue);
doubleValue
before(?).foreach (KeyValuePair<keyType, valueType> pair in this.filebasedNumberSystem){}
object value = this.dictionaryInstance[key];
Local test system is
Test can be better and add for error a new test case.
The MIT License (MIT)
Copyright (c) 2020-2021 Sebastian Ritter
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.