https://github.com/romansoloweow/wordstonumber
https://github.com/romansoloweow/wordstonumber
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/romansoloweow/wordstonumber
- Owner: RomanSoloweow
- License: mit
- Created: 2021-05-06T15:39:34.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-06-14T12:44:15.000Z (about 5 years ago)
- Last Synced: 2025-07-23T19:21:21.560Z (11 months ago)
- Language: C#
- Size: 146 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WordsToNumber
[](https://travis-ci.com/RomanSoloweow/WordsToNumber)
Allows you to find in the text and replace numbers written in words, numbers written in digits for Russian locale:
```C#
var parser = new WordsToNumber();
var result = parser.WordsToNumberInText("Пятьюстами пятью миллионами оплатил дом, " +
"который стоил на триста шестьдесят семь тысяч дешевле. " +
"В итоге семьдесят два года и ещё двести пять лет мучений ста " +
"одиннадцати тысяч фиолетовых оленей");
//505 000 000 оплатил дом, который стоил на 367 000 дешевле. В итоге 72 года и ещё 205 лет мучений 111 000 фиолетовых оленей
```