|
I'm discovering a simple solution for singular-plural keywords searches. I heard about stemming but I don't want to use all its features, only plural/singular transformation. The language is Dutch. Have looked at http://www.snowball.tartarus.org before...
Started by BoBaH32 on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
So the requirement is to use only plural/singular transformations..
If I use one of them, all functionality except singular/plural should be disabled.
|
|
Do you use singular or plural for enumerations? I think i makes best sense with plural in the declaration
enum Weekdays { Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday }
... but I think it makes more sense with singular when using the...
Started by Jan Aagaard on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
StringSplitOptions , ....
DayOfWeek ) have singular names and flag enums (e.g.
Library/4x252001(VS.71).aspx
Use a singular name for most Enum types, but use a plural name for Enum typesIn the .NET Framework, most "normal" enums (e.g.
|
|
Exact Duplicate Table Naming Dilemma: Singular vs. Plural Names
Is it better to use singular or plural database table names ? Is there an accepted standard ?
I've heard arguments for and against it, what do you guys think ?
Started by lalala2007 on
, 14 posts
by 14 people.
Answer Snippets (Read the full thread at stackoverflow):
My advice is flip a coinI like to use ... .
I assume that Microsoft a singular name, or that it contains multiple entities so it should be plural.
To SQL converts plural form table names to singular when creating data entities.
|
Ask your Facebook Friends
|
Is there any algorithm in c# to singularize - pluralize a word (in english) or does exist a .net library to do this (may be also in different languages)?
Started by Ronnie on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
There is....
Humans do it - we remember the singular and plural of each word and don't just apply a rule do it for Esperanto, with no special cases!
string plural(string noun) { return noun + "j as Irregular Plurals of Nouns .
|
|
When you present a message to the user that involves an entity that could be either singular or plural, Rails has a shortcut to handle that. I'm talking about this situation:
"Delete committee? Its X meeting(s) will also be deleted."
Rails has a way so...
Started by Ethan on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
If plural is supplied, it will use that when count....
Texthelper/pluralize.html
ActionView::Helpers::TextHelper::pluralize(count, singular, plural = nil)
Attempts to pluralize the singular word unless count is 1.
|
|
Can somebody perhaps explain here why on earth CakePHP has a convention of using plural names for db tables and controllers and singular for models? Why not always use singular terms, or always plural? For me it seems confusing to always have to think...
Started by Simon on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
User....
A select field ) or the name of a foreign key (ie .
The model is singular, because you should think about finding a single record with it.
Database tables are always plural, because they hold many records.
Of elements in the right way.
|
|
If i've got a thread model and controller.
should that be in singular or plural for both the model and controller?
i could show a thread and also list threads.
dont know what i should use.
$thread->get_lists(); // doesnt sound good $threads->show...
Started by noname on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
KohanaPHP handles their singular/plural MVC singular, if they....
What matters, however, is that you pick a scheme and be consistent .
I personally use singular for models and plural for controllers.
It doesn't matter.
|
|
Is there any disadvantage to using singular names for controllers and helpers? Nothing seems to rely on this. It even seems helpers don't have to make the same choice about singular vs. plural as their corresponding controllers, at least according to ...
Started by allyourcode on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Plural names usually sound more natural plurals just sounds better, and then if you have a controller that handles a singular resourse, ie user like eg layout_helper ....
Using plural names for controllers is just a convention.
|
|
Which one of these Uris would be more 'fit' for receiving POSTS (adding product(s))? Are there any best practices available or is it just personal preference?
/product/ (singular) or
/products/ (plural)
Currently we use /products/?query=blah for searching...
Started by Arron on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
I would only post to the singular.
You rarely work plural forms of names and perform the appropriate action based upon the request method.
But you still say it in the singular.
Or with query criteria).
|
|
When I'm naming array-type variables, I often am confronted with a dilema: Do I name my array plurally or singularly?
For example, let's say I have an array of names: In PHP I would say: $names=array("Alice","Bobby","Charles"); However, then lets say ...
Started by stalepretzel on
, 12 posts
by 12 people.
Answer Snippets (Read the full thread at stackoverflow):
Same for lists list so it would be
nameList
....
Always plural.
I treat arrays like tables in the database, and always name them with the plural.
Then I can do something like:
$name = $names[1];
Plural.
I use the plural form.
|