$nlp.conform
Coordinates Russian words with numerals (chooses an appropriate case).
Coordination is done using the PyMorphy library.
How to use
# “5 яблок” will be displayed
a: Russian text can be coordinated with a numeral: 5 {{ $nlp.conform("яблоко", 5) }}
script:
$session.points = $nlp.conform("правильный", $session.myPoints) + " " + $nlp.conform("ответ", $session.myPoints);
a: У тебя {{$session.myPoints}} {{$session.points}}.