A
A
Albert Tobacco2014-07-17 20:59:50
Python
Albert Tobacco, 2014-07-17 20:59:50

How to decline a word in all cases in phpmorphy?

I can’t get it right yet, I need to enter the word, calculate the root and give out all five cases.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
K
kvkirill, 2016-04-07
@kvkirill

You first call the constructor, then the class declaration. Need to change places.

A
Alexey, 2016-04-07
@RusTech

So in the example the class is declared after it is called

A
Albert Tobacco, 2014-07-18
@bighoc

Yes, I can’t figure it out, I just need it to work only with nouns, and it returns 30 forms for adjectives. How to cut it off?

D
Dmitry Kharitonov, 2014-07-17
@geakstr

You need a "getAllFormsWithGramInfo" method See more here phpmorphy.sourceforge.net/dokuwiki/manual

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question