I am trying to build an ontology editor....and there is a form that
has three fields
subject --> predicate --> object..
For instance... CakePHP ---> is --> PHP Framework
to keep all the terms consistent...I am encoding them using this
custom function
function($inString){
return Inflector::camelize(Inflector::singularize($inString));
}
other possible predicates that I can think of are: is based on
(IsBasedOn), leads to (LeadsTo) ...etc
I hope this explains what I am trying to do and the problem
On Dec 18, 11:20 pm, Adam Royle <[email protected]> wrote:
> Well, "Is" is not actually a plural... so... what behaviour would you
> expect?
>
> Maybe some context of where you are using this would be beneficial.
>
> Cheers,
> Adam
>
> On Dec 19, 12:45 pm, bingo <[email protected]> wrote:
>
> > hi bakers,
>
> > I just stumbled across a weird problem and not sure whether its a bug
> > in my code or Core library.
>
> > I am using Inflector::Singularize to convert tags into singular form.
> > However, during my test, I found singularize function converts "Is" to
> > "I", which seems wrong. simply try this
>
> > debug(Inflector::singularize('is')); //this will return "I".
>
> > does anyone known how to solve this problem ? (in a generic way)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---