Comments (2)
The purpose of these 2 libraries are very different.
Humanizer is a library to do operations on strings, one of the operation is to pluralize a word : "man".Pluralize().
To cut a long story short, Humanizer does:
- verify if the word is "man" "woman" "child", etc... and use the correct plural
- verify the ending of the word: potato => potatoES
- verify if the word is uncountable
- else add a S
It only supports english, no sentences and is not related numbers.
PluralNet is totally different, it's a tool for localizations (select the correct resource depends of the number), if you want to display:
- you have removed XX item(s), you can restore this file(s) using this link.
You can create 2 resources:
- you have removed 1 item, you can restore this file using this link.
- you have removed {0} items, you can restore these files, using this link.
PluralNet will select the correct string depends of the number and will support all languages.
For example
- 0 is singular in french
- 9999.999991 is singular for some languages cause ending with a 1
- Polish has 4 different plural forms
etc...
I wrote an article about that, read it here:
http://www.rudyhuyn.com/blog/2016/09/28/pluralization-the-missing-part-of-net/
To conclude, both libraries are useful but has 2 different purposes, you can use both on your application
from pluralnet.
This is going to be everyone's first question. A chart would be nice.
from pluralnet.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pluralnet.