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

How to make Grails 3 use plural routes by default

So I have a Grails (3.2.4) app, but the routes are all set to be singular names by default. For example: /product/2 /order/4952 I have managed to change the database table naming to use plural using the following in the Product domain…
nbkhope
  • 7,360
  • 4
  • 40
  • 58
0
votes
0 answers

SQLite singular/plural search

I'm building an Android app for a college project. It searches an SQLite database for recipes according to ingredients that the user specifies. I'm still at the beginning, and I've run into this problem. I'm storing ingredients as singular in the…
user3501779
  • 157
  • 1
  • 10
0
votes
1 answer

Ruby on Rails Automatic Variable Name (Plural vs Singular)

I am building a rails app that has several quizzes with the exact same structure: A name such as @quiz_bf or @quiz_bs new.html.erb and edit.html.erb views for each quiz A partial _quiz.html.erb that stores the actual quiz questions for each quiz A…
Liz
  • 1,369
  • 2
  • 26
  • 61
0
votes
3 answers

Wordpress, a good search plugin?

I'm looking for Wordpress plugin that just improved the search results, but doesn't add the the search box. At the moment wordpress isn't even doing plurals. So does anyone know a good plugin that will make the search a whole lot better?
CafeHey
  • 5,699
  • 19
  • 82
  • 145
0
votes
0 answers

REStFul API how to deal with feeedback endpoint

I'm building a RESTful API amongst others I have the following endpoint: /api/feedback REST resources should use their plural forms. In this case, Feedback is a mass noun, that is it doesn't have a plural form. How should I deal with it? Should it…
Stalin Kay
  • 577
  • 8
  • 18
0
votes
3 answers

Printing plurals from a list

Pretty noobie, but I'm trying to write a function that prints all the plural words in a list of words So output would be: >>> printPlurals(['computer', 'computers', 'science,', 'sciences']) computers sciences and this is what I have so far but…
yummyyenni
  • 23
  • 7
0
votes
1 answer

Pluralization logic from Symfony 2 in JavaScript

Symfony has a great pluralization logic with the translation bundle. However, I would like to bring this logic to JavaScript since I am updating a string from an Ajax call. Is there such "library" available to do such a thing?
jsgoupil
  • 3,788
  • 3
  • 38
  • 53
0
votes
3 answers

Java - Grammar check not operating properly

I had a question earlier on a program I was writing to simulate plant growth. It essentially uses a loop that counts up to a predetermined limit. I have since changed my code to the following: /* Java program: plant.java This program runs a loop…
bordumb
  • 77
  • 2
  • 3
  • 10
0
votes
1 answer

Translate toolkit : csv2po plural conversion is not formatted properly

I use csv2po with a template file. The plural strings are not formatted properly. The expected result : #: /fr msgid "hour" msgid_plural "hours" msgstr[0] "heure" msgstr[1] "heures" The actual result : #: /fr msgid "hour" msgid_plural…
alK13
  • 11
  • 5
0
votes
3 answers

dictionary without plural words for game on iOS

I am creating a words game for iOS. I would like to prevent players from making plural words. Is there any dictionary that I can use to write a function like isPluralWord(@"tables") which will return true and isPluralWord(@"table") will return…
dhruv chopra
  • 490
  • 3
  • 11
0
votes
1 answer

Rails: Getting a Pluralize-able Translation Without a Count

I have a model with a translation that can be pluralized: en: activerecord: models: user: one: User other: Users If I call this translation directly, I get these results: t("activerecord.models.user", count: 1) =>…
nullnullnull
  • 8,039
  • 12
  • 55
  • 107
0
votes
2 answers

MySql plural search without Fulltext

I want to make a plural search on my table but i don't want to use FULLTEXT.I tried FULLTEXT but my table doesn't support it.My query is like: SELECT * FROM items WHERE LOWER(items.`name`) LIKE '%parameter%' OR LOWER(items.brand) LIKE…
Antonio Papa
  • 1,596
  • 3
  • 20
  • 38
0
votes
1 answer

Use XSLT to remove plurals

I am not sure if this is possible. Is it possible, using xslt, ideally xslt 1, to go through an xml file and remove a term if it is a plural of another term. I have this:
lobe
  • 31
  • 7
0
votes
1 answer

How to nest asynchronous functions based on array?

I have a async function that breaks it's callbacks into an object success and error, this function takes one param (besides the callback) "pink". async("pink",{ success:function(){ }, error:function(){ } }); I want to make plural…
ThomasReggi
  • 55,053
  • 85
  • 237
  • 424
-1
votes
1 answer

Python- trying to understand plural vs singular in code. For example: for i, square in enumerate(squares):

I'm trying to clarify my understanding regarding situations in the code in which the singular seems to extract from the plural. I'm not sure if this is standard among different languages, or, unique to specific situations in python. Regardless, in…