Returns the predicative adjective.
(adjective)
| 410 | raise NotImplementedError |
| 411 | |
| 412 | def predicative(adjective): |
| 413 | """ Returns the predicative adjective. |
| 414 | """ |
| 415 | w = adjective.lower() |
| 416 | if w.endswith("ari"): |
| 417 | return w + "o" |
| 418 | if w.endswith(("ali", "ili", "esi", "nti", "ori")): |
| 419 | return w[:-1] + "e" |
| 420 | if w.endswith("isti"): |
| 421 | return w[:-1] + "a" |
| 422 | if w.endswith(("che", "ghe")): |
| 423 | return w[:-2] + "a" |
| 424 | if w.endswith(("chi", "ghi")): |
| 425 | return w[:-2] + "o" |
| 426 | if w.endswith("i"): |
| 427 | return w[:-1] + "o" |
| 428 | return adjective |
no outgoing calls
no test coverage detected
searching dependent graphs…