abstract struct Rosetta::Pluralization::Rule

Overview

Abstract pluralization rule.

A pluralization rule struct provides a main #rule method that, given a count number, returns the corresponding plural category tag, which should be part of the common plural category tags defined by the CLDR:

:zero, :one, :two, :few, :many and :other.

Direct Known Subclasses

Defined in:

rosetta/pluralization/rule.cr
rosetta/pluralization/rule/arabic.cr
rosetta/pluralization/rule/breton.cr
rosetta/pluralization/rule/central_morocco_tamazight.cr
rosetta/pluralization/rule/colognian.cr
rosetta/pluralization/rule/east_slavic.cr
rosetta/pluralization/rule/irish.cr
rosetta/pluralization/rule/langi.cr
rosetta/pluralization/rule/latvian.cr
rosetta/pluralization/rule/lithuanian.cr
rosetta/pluralization/rule/macedonian.cr
rosetta/pluralization/rule/maltese.cr
rosetta/pluralization/rule/manx.cr
rosetta/pluralization/rule/one_other.cr
rosetta/pluralization/rule/one_two_other.cr
rosetta/pluralization/rule/one_up_to_two_other.cr
rosetta/pluralization/rule/one_with_zero_other.cr
rosetta/pluralization/rule/other.cr
rosetta/pluralization/rule/polish.cr
rosetta/pluralization/rule/romanian.cr
rosetta/pluralization/rule/scottish_gaelic.cr
rosetta/pluralization/rule/slovenian.cr
rosetta/pluralization/rule/upper_sorbian.cr
rosetta/pluralization/rule/welsh.cr
rosetta/pluralization/rule/west_slavic.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

abstract def apply(count : Rosetta::CountArg) : Symbol #

[View source]
def initialize #

[View source]