
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
grammaticalnumber
Advanced tools
Determining whether a number (integer or floating point) should be treated as singular, plural, or paucal. Slavic languages may treat some plural numbers as a grammatical singular, and may use a second grammatical plural, called paucal.
"1 čovjek", "3 čovjeka", "5 ljudi".
A function for determining whether a number (integer or floating point) should be treated as singular, plural, or paucal.
In Slavic languages such as Bosnian, Croatian, and Serbian, certain numbers (2, 3, 4) have a different grammatical form from other plural values. This form is called paucal.
Additionally, certain plural numbers, such as 11, are gramatically treated as singular.
The function determineGrammaticalNumber takes a positive or negative number as argument and returns one of the following strings: 'singular', 'plural', 'paucal'.
This string can then be used in determining which resource text to use with the number. In Bosnian and Croatian, one might write "1 čovjek", "3 čovjeka", or "5 ljudi".
Examples of usage:
determineGrammaticalNumber(301); // returns 'singular'
determineGrammaticalNumber(9); // returns 'plural'
determineGrammaticalNumber(23); // returns 'paucal'
Special thanks to Emina Kamenarević and Alma Sarajlić for their linguistic guidance.
FAQs
Determining whether a number (integer or floating point) should be treated as singular, plural, or paucal. Slavic languages may treat some plural numbers as a grammatical singular, and may use a second grammatical plural, called paucal.
The npm package grammaticalnumber receives a total of 0 weekly downloads. As such, grammaticalnumber popularity was classified as not popular.
We found that grammaticalnumber demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.