15 lines
298 B
Python
15 lines
298 B
Python
from calendar import timegm
|
|
from pymorphy3 import MorphAnalyzer
|
|
from time import gmtime
|
|
|
|
|
|
_morph = MorphAnalyzer()
|
|
|
|
|
|
def make_word_agree_with_number(n: int, word: str) -> str:
|
|
w = _morph.parse(word)[0]
|
|
return w.make_agree_with_number(n).word
|
|
|
|
|
|
def posix_time():
|
|
return timegm(gmtime())
|