Skip to content

The library to handle plurals of nouns or unit expressions.

License

Notifications You must be signed in to change notification settings

bartlomiejmucha/Quantus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quantus

The library to handle plurals of nouns or unit expressions.

Languages vary in how they handle plurals of nouns or unit expressions ("hour" vs "hours", and so on). Some languages have two forms, like English; some languages have only a single form; and some languages have multiple forms.

Quantus is a library that implementes providers that returns correct plural category for cardinal numbering. These categories are:

  • Zero
  • One
  • Two
  • Few
  • Many
  • Other

Providers implements rules that are described here: Language Plural Rules

Supported languages

Currently only following languages are supported:

  • Danish,
  • German,
  • English,
  • French,
  • Japanese,
  • Polish

Installation

Nuget package is available: https://www.nuget.org/packages/Quantus

Sitecore Implementation

There is Quantus.Sitecore library that provides basic integration of Quantus library for Sitecore.

What next

The aim is to implement providers for all languages and add a support for ordinal numbering.

About

The library to handle plurals of nouns or unit expressions.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages