|
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.
|
|
Quick question.
How can I test a word to see if it is singular or plural?
I'd really like:
test_singularity('word') # => true test_singularity('words') # => false
I bet rails is capable!
Thanks.
Started by doctororange on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
This always works, like this
plural_form = org_word.singularize.pluralize singular_form = org: i actually almost never....
Test for singularity or plural, i just convert it to the singular or plural form i require.
|
|
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.
|
Ask your Facebook Friends
|
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.
|
|
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.
|
|
This is about best practices in general, not specific for a single language, database or whatever
We all have to deal with generated output where you can be reporting "one products" or "two product". Doesn't read very well... Some just solve this by using...
Started by Workshop Alex on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
It's usually easiest and most efficient to store the singular and create the plural by using a group.
|
|
Say I have a note named "apple". If I type "apples" in another note, it does not link. Is there a way to do one or all of the following?
make plural forms link as well as singular give notes aliases as a last resort, manually link notes
Started by Matthew on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at superuser):
I have not tried ....
These links help explain the situation:
Bug Report Mailing List Discussion There is no way to do this in Tomboy itself, but somebody recently wrote an add-in that lets you manually set up redirects (like the alias idea you suggest) .
|