CLDR 48 · sgs

Samogitian plural rules

CLDR 48 gives Samogitian (sgs) five plural forms: one, two, few, many and other. What decides each, which numbers fall where, and an Android <plurals> block with every form, ready to paste.

  • one
  • two
  • few
  • many
  • other

The rules

What decides each Samogitian form.

  • one

    The last digit of the number is 1 and the last two digits of the number are not 11.

    Integers
    1, 21, 31, 41, 51, 61, 71, 81, 101, 1001, …
    Decimals
    1.0, 21.0, 31.0, 41.0, 51.0, 61.0, 71.0, 81.0, 101.0, 1001.0, …
    CLDR rule
    n % 10 = 1 and n % 100 != 11
  • two

    The number is 2.

    Integers
    2
    Decimals
    2.0, 2.00, 2.000, 2.0000
    CLDR rule
    n = 2
  • few

    The number is not 2, the last digit of the number is 2 to 9 and the last two digits of the number are not 11 to 19.

    Integers
    3–9, 22–29, 32, 102, 1002, …
    Decimals
    3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 22.0, 102.0, 1002.0, …
    CLDR rule
    n != 2 and n % 10 = 2..9 and n % 100 != 11..19
  • many

    It has a nonzero decimal.

    Integers
    None
    Decimals
    0.1–0.9, 1.1–1.7, 10.1, 100.1, 1000.1, …
    CLDR rule
    f != 0
  • other

    Every number the other forms do not take.

    Integers
    0, 10–20, 30, 40, 50, 60, 100, 1000, 10000, 100000, 1000000, …
    Decimals
    0.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0, 100.0, 1000.0, 10000.0, 100000.0, 1000000.0, …
    CLDR rule
    No condition: what is left

Reading the CLDR rule

n
the number itself, where 1.0 counts as 1
i
the integer part (1 for 1.50)
v
how many decimals are shown (2 for 1.50)
w
how many decimals are shown, without trailing zeros (1 for 1.50)
f
the shown decimals as a whole number (50 for 1.50)
t
the shown decimals without trailing zeros (5 for 1.50)
c, e
the compact exponent, for a number shown in a compact form such as 1M; CLDR writes 1M as 1c6 (6 for 1c6)

% is the remainder, .. a range of whole numbers, and and binds before or. From UTS #35: plural operand meanings.

Numbers

Which form a number takes.

Common counts under CLDR 48's Samogitian rules, then any number you type.

  • 0other
  • 1one
  • 2two
  • 3few
  • 4few
  • 5few
  • 7few
  • 11other
  • 12other
  • 21one
  • 22few
  • 25few
  • 100other
  • 101one
  • 1000000other
  • 0.5many
  • 1.0one
  • 1.5many

Decimals count as written: 1.0 and 1 can take different forms.

takes one

Ready to paste

An Android block.

Every form filled with an English stand-in. Write each one as you would say it for that form's sample numbers.

app/src/main/res/values-sgs/strings.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <plurals name="files_count">
        <item quantity="one">%d file</item>
        <item quantity="two">%d files</item>
        <item quantity="few">%d files</item>
        <item quantity="many">%d files</item>
        <item quantity="other">%d files</item>
    </plurals>
</resources>
Kotlin
// Compose
Text(pluralStringResource(R.plurals.files_count, count, count))

// Views
resources.getQuantityString(R.plurals.files_count, count, count)

Good to know

  • In Samogitian, one is not only 1: it also takes 21, 31, 41, 51, 61, 71 and so on. Keep the number in that form (%lld, or %d on Android) rather than writing out the word; Android lint's ImpliedQuantity check reports a one item without a number when one matches more than one number.
  • In Samogitian, many takes only decimals, such as 0.1–0.9, 1.1–1.7 and so on. Android's getQuantityString takes the quantity as an int, so under CLDR 48's rules Android never selects many for a count.
  • 0 takes other in Samogitian: CLDR 48 has no zero form for it, so under CLDR 48's rules Android never selects a quantity="zero" item here.
  • Xcode 26.6's String Catalog plural table has no entry for sgs, so this page has no .xcstrings entry to paste.

In anylocale

How anylocale differs for Samogitian.

anylocale gives Samogitian one and other, not CLDR 48's two, few and many. A two, few or many form in a pushed file is not kept and an export has none, so Android falls back to other for the numbers that take two, few or many.

iOS and Android

What the platforms do with these forms.

Apple: Xcode and Foundation

  • When you vary a string by plural, Xcode adds the forms the language needs. Apple's examples are One and Other for English, and One, Few, Many and Other for Russian. Localizing and varying text with a string catalog
  • Xcode picks the specifier from the interpolation: in Apple's example, the count in Text("\(collection.landmarks.count) items") becomes %lld, a 64-bit integer, with One %lld item and Other %lld items. Localizing and varying text with a string catalog
  • Only other is required. A form the language does not use is ignored in favour of other, and leaving out one it does use can make the text grammatically wrong. Localizing strings that contain plurals
  • Keep the number in the text: Apple advises the format specifier, or a spelled-out word, over a digit such as 1, which may not be localized correctly when the user changes regions. Localizing strings that contain plurals
  • English may carry an optional zero in a .stringsdict: Apple's example returns "No homes found" for 0. Localizing strings that contain plurals
  • A localization's identifier is a language code, optionally with a region or a script: sr for Serbian, sr-Latn for Serbian in the Latin script, and zh-Hans and zh-Hant for Chinese in the simplified and traditional scripts. Choosing localization regions and scripts

Android: resources and lint

  • Android has the same six quantities and picks one by grammatical necessity only: in English a zero item is ignored even for 0, and in Korean only other is ever used. String resources: quantity strings
  • The pick uses ICU's PluralRules for the configuration's first locale. When the chosen quantity has no item, Android falls back to other, and throws NotFoundException when other is missing too. ResourcesImpl.getQuantityText in AOSP
  • getQuantityString takes the quantity as an int, so on Android a decimal never selects a form. Resources.getQuantityString
  • Lint's MissingQuantity check is an error when a translation lacks a quantity its language needs. Google's example is Polish without many. Lint: MissingQuantity
  • Lint's UnusedQuantity check warns about quantities a language does not use: in Chinese only other is used, so zero and one are never returned, even for 0 or 1. Lint: UnusedQuantity
  • Lint's ImpliedQuantity check is an error when a one item has no number but one matches more than one number, as in Slovenian: 1, 101, 201 and so on. Lint: ImpliedQuantity
  • A region takes an r, as in values-pt-rBR. A script or a numeric region needs the BCP 47 form Android 7.0 (API 24) added, such as values-b+zh+Hant or values-b+es+419. App resources: language and region qualifiers
  • Android's qualifier parser also accepts a three-letter language in the plain form, so Filipino can be values-fil. LocaleValue::InitFromParts in AOSP

Each linked page was read on November 9, 2026.

Questions

How many plural forms does Samogitian have?
Five in CLDR 48: one, two, few, many and other.
Which plural form does 0 take in Samogitian?
other. In CLDR 48, Samogitian other takes 0, 10–20, 30, 40, 50, 60 and so on.
Which plural form does 1.5 take in Samogitian?
many. Decimals have rules of their own: in CLDR 48, Samogitian many takes decimals such as 0.1–0.9, 1.1–1.7 and so on.
Which Android resource folder holds Samogitian strings?
values-sgs, so the plurals go in app/src/main/res/values-sgs/strings.xml.
How do I add Samogitian plurals to a String Catalog?
Xcode 26.6's String Catalog plural table has no entry for sgs, so this page has no entry to paste.

Plural rules and samples from Unicode CLDR 48, read from supplemental/plurals.json in the cldr-core 48.2.0 package. Unicode publishes the same data as the CLDR 48 plural rules chart. String Catalog forms come from the plural table in Xcode 26.6 (17F113), XCStringsParser.framework/Resources/variationConfigFile.plist, read on November 9, 2026.

Start with the file your app already ships.

After checkout, import one strings file and read the first drafts within minutes.

Nothing to connect and nothing to install. The CLI is optional.