Questions tagged [plural]

Pertaining to handling text that must change depending on the number of items involved, according to the rules of different languages.

Pertaining to handling text that must change depending on the number of items involved, according to the rules of different languages.

English only has two forms: "singular" and "plural":

  • You have 1 file
  • You have 2 files

Some languages have more complicated rules, however, and several different categories.

Suggested Reading

110 questions
0
votes
1 answer

What is the right way to use Android Plurals?

I have method that gets a list (listOf(1, 5, 10, 15, 30)) and TimeType (MINUTES or HOURS) as parameters. And I have to use plurals for MINUTES so that if I choose 1 I get "minute" and if I choose 5 or 10 I get "minutes". But I have problems with…
Alex20280
  • 97
  • 6
0
votes
0 answers

Schema.org standardized class property - What if you need more than one item of the same kind?

Schema.org defines generic types. For example it defines Person here https://schema.org/Person It defines properties like for example alumniOf meaning "what place he/she studied in". Textually "An organization that the person is an alumni of." Okey,…
Xavi Montero
  • 9,239
  • 7
  • 57
  • 79
0
votes
1 answer

How to tell Weblate that a particular string is a plural one

I'm using ini file for localisation. Actually almost the Joomla! format. I searched the Weblate documentation and read all about Gettext plural formulas for different languages. What I can't find is how to "tell" Weblate that a particular string id…
Radek Suski
  • 1,352
  • 1
  • 13
  • 23
0
votes
0 answers

IOS Swift Localisation Plural : compatibility with 14.4.2

As an IOS developer, I would like to develop the localisation module which supports different language by user default. When it runs with 12.4, 13.4, 14.4, it works When it runs with 14.4.2, it does not work. Would you please tell us more reminding…
Jeff Bootsholz
  • 2,971
  • 15
  • 70
  • 141
0
votes
1 answer

Search for plural words in line and make it singular words

I want to find if the line consists plural words. If so, I want to change those words to singular words. For example: file1.txt That bananas is yellow. They does taste good. Expected_output.txt That banana is yellow. They do taste good. please help…
goodKarma
  • 1
  • 2
0
votes
1 answer

Magento plural support

anybody knows whether magento utilizes zend's plural in templates? So far haven't found any traces in the code I want to make use of it to display 1 review, 3 reviews
Zifius
  • 1,650
  • 1
  • 16
  • 27
0
votes
1 answer

Sequelize : Scope with where condition not working with singular and plural

I am looking to put a valid condition in the child running for a 1: 1 and N: N relationship like this example 1:1 // Find all projects with a least one task where task.state === project.state Project.findAll({ include: [{ model: Task, …
Jul
  • 1
0
votes
1 answer

How to make PoEdit recognize plural strings from Symfony Translator component

I have a non-Symfony PHP project in which I want to use Symfony Translate component with MoFileLoader. I have setup PoEdit so it recognizes trans("string") function when parsing file looking for translations. This part of code
mmijic
  • 25
  • 7
0
votes
2 answers

How do I get the base of a synonym/plural of a word in python?

I would like to use python to convert all synonyms and plural forms of words to the base version of the word. e.g. Babies would become baby and so would infant and infants. I tried creating a naive version of plural to root code but it has the issue…
Dan Harmon
  • 313
  • 1
  • 13
0
votes
2 answers

Get singular or Plural string with regex in Java

I want to replace a variabel in a String to a singular/plural word based on a number. I've tried to use regex, but I don't know how to use a combination of regex and replaces. //INPUTS: count = 2; variable = "Some text with 2…
stijnb1234
  • 184
  • 4
  • 19
0
votes
1 answer

Does .NET have a built-in pluralisation mechanism?

In order to properly handle pluralisation, Qt has QObject::tr(), gettext has ngettext, Rails has a good i18n API, Cocoa has .stringsdict files. All those systems take in account the actual number (quantity) to determine the appropriate plural form…
0xced
  • 25,219
  • 10
  • 103
  • 255
0
votes
1 answer

How to count the number of plurals and singulars given a corpus in Python

I hope you can help me with a task. I need to count the number of plurals and singulars in a corpus. I have a corpus whose lines have the following structure: ['4', 'lanzas', 'lanza', 'NCFP000'] the first position [0] counts for a number (4), the…
0
votes
1 answer

Porting of Plural string from Localizable.strings to Localizable.stringsdict with %@ input formatter in the middle of stirng

In Localizable.strings, I have below plural strings with one and other "User added %@ posts.##{one}" = "User added a post."; "User added %@ posts.##{other}" = "User added %@ posts."; I wish to remove it from Localizable.strings and add it to…
0
votes
1 answer

Why NLTK Lemmatizer can't lemmatize some plural words?

I have tried to lemmatize a words from Quran Holy Book, but some words can't be lemmatized. here's my sentence: sentence = "Then bring ten surahs like it that have been invented and call upon for assistance whomever you can besides Allah if you…
sang
  • 375
  • 2
  • 8
  • 23
0
votes
1 answer

Which human languages need plural forms for measurement units?

The GNU Compiler Collection contains the following strings to be translated: operand %d should be a 6 bit unsigned immediate operand %d should be a 8 bit unsigned immediate operand %d should be a 3 bit unsigned immediate To save translator's…
Roland Illig
  • 40,703
  • 10
  • 88
  • 121