Skip to main content

$nlp.conform

Coordinates Russian words with numerals (chooses an appropriate case).

Coordination is done using the PyMorphy library.

Syntax

nlp.conform("яблоко", 5); // => "яблок"

How to use

script:
$session.points = $nlp.conform("правильный", $session.myPoints) + " " + $nlp.conform("ответ", $session.myPoints);
a: У тебя {{$session.myPoints}} {{$session.points}}.