Ticket #595 (closed Feature Request: duplicate)

Opened 4 months ago

Last modified 3 months ago

Inflector, function singular

Reported by: xmorave2 Owned by: - No owner -
Priority: minor Milestone: 2.1.2
Component: Helpers Version: SVN HEAD
Keywords: Inflector Cc:

Description

function singular() in Inflector helper, for argument 'researches' returns 'researche'

I'am not good at English, but i mean, this is bad...

Change History

follow-up: ↓ 2   Changed 4 months ago by tterragcnoom

researches is a verb, not a noun. You can't singularize or pluralize a verb.

in reply to: ↑ 1   Changed 4 months ago by Geert

"Research" can be both a verb and a noun. You also have "a researcher" as well as the adjectif "researchable". The word comes originally from the French language where they still use "rechercher" nowadays. Back in the 16th century, when the word was adopted in English, they spelled it "recercher".

Sorry, I got carried away a bit.

  Changed 4 months ago by atomless

  • type changed from Bug to Feature Request

This is not a bug.

The problem is the intricacies and inconsistencies of the english language.

For example to singularise 'beaches' the inflector would need to trim both the 'e' and the 's' but to singularise 'caches' the inflector would need to trim just the 's'.

Basically it would be near impossible for the inflector singular method to be infallible when relying on algorithmic singularization.

However I think may be a case for singularizing words ending in 'ches' as I believe the majority of words ending in 'ches' do require both the 'e' and the 's' to be removed to be singular.

  Changed 3 months ago by Shadowhand

  • status changed from new to closed
  • resolution set to duplicate

Duplicate of #390.

Note: See TracTickets for help on using tickets.