The library to handle plurals of nouns or unit expressions.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
LICENSE
Quantus.sln
README.md

README.md

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.