ploeh / numsense Goto Github PK
View Code? Open in Web Editor NEWA .NET library for parsing natural-language numerals ("forty-two") to integers, and converting the other way as well
License: MIT License
A .NET library for parsing natural-language numerals ("forty-two") to integers, and converting the other way as well
License: MIT License
tryParseEnglish "twentytwenty"
returns Some 40
, which is surprising to say the least. It was never an explicit test case, though, but is a fairly standard idiom in the language, particularly when referring to years:
There are two potential ways to address such numbers:
tryParseEnglish "twentytwenty"
would be Some 2020
. While I suspect that they are unambiguous, anyone can, and is welcome to, prove me wrong with only a single counter-example.None
.Numsense should have a logo, to be used as icon for its NuGet package, etc.
Has it been submitted by accident or on purpose? The zipped repo is already 45MB, which is not the best.
In the mean of minimization of the public surface of the library, should the individual converters really be provided as public classes?
I mean, the normal way to access it would be through the Numeral
class, right?
The Build.fsx
script ought to build a NuGet package.
Once a NuGet package is created, I'll publish it on nuget.org.
tryParseDanish "tyvetyve"
returns Some 40
, which is surprising to say the least. It was never an explicit test case, though, but is a fairly standard idiom in the language, particularly when referring to years:
There are two potential ways to address such numbers:
tryParseDanish "tyvetyve"
would be Some 2020
. While I suspect that they are unambiguous, anyone can, and is welcome to, prove me wrong with only a single counter-example.None
.A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.