rudict-all

This commit is contained in:
vladislav.khorev committed 2014-12-13 23:11:30 +00:00
1 parent c2da753cca
commit 07f372acb0
61 files changed

No files matched your search

@@ -0,0 +1,331 @@
Номер Прилагательное может быть кратким просто так или с добавлением Е специальная краткая форма, мужской род Перевод 1 Комментарий 1 Пример 1 Перевод 2 Комментарий 2 Пример 2 Перевод 3 Комментарий 3 Пример 3
56 другой 0 其他 Моя другая машина - Мерседес-Бенц (我的其他的车是奔驰)
73 новый 1
89 самый 0
96 большой 0
130 последний 0
141 российский 0
173 русский 0
185 общий 0 общ
193 высокий 1
199 хороший 1
207 главный 1
215 лучший 0
229 маленький 0
231 некоторый 0
233 любой 0
241 молодой 1
249 государственный 1
250 полный 0 полон
253 никакой 0
254 советский 0
256 настоящий 1
257 всякий 1
264 старый 1
278 разный 0
279 нужный 1
281 иной 0
290 белый 1
291 собственный 1
293 чёрный 1
297 основной 0
311 далекий 1
334 подобный 1
335 следующий 0
352 равный 1
364 живой 1
369 известный 1
373 военный 1
377 важный 1
379 великий 1
381 простой 1
385 огромный 1
387 политический 0
409 московский 0
424 готовый 1
439 данный 0
442 красный 1
453 современный 1
469 данный 0
472 социальный 1
480 ранний 0
482 особый 0
483 целый 1
487 плохой 1
490 сильный 1
492 скорый 1
501 крупный 1
502 внутренний 1
514 экономический 0
516 правый 1
519 федеральный 1
524 близкий 1
526 похожий 1
532 различный 1
539 необходимый 1
544 единственный 1
545 лёгкий 0 лёгок
555 человеческий 0
561 международный 1
564 дорогой 1
572 небольшой 0
577 местный 0
586 бывший 0
601 американский 0
611 широкий 1
615 мировой 0
617 тяжелый 1
627 возможный 1
630 отдельный 1
631 средний 1
632 красивый 1
640 короткий 1 короток
654 серьёзный 1
660 интересный 1
662 добрый 1
665 национальный 1
667 длинный 1
670 страшный 1
671 прошлый 0
673 общественный 1
703 детский 0
707 единый 1
709 определённый 1
710 низкий 0 низок
719 чужой 1
721 странный 1
723 чистый 1
732 поздний 1
738 специальный 1
745 научный 1
754 сложный 1
762 реальный 1
775 способный 1
778 малый 1
779 старший 0
783 личный 1
786 свободный 1
788 обычный 1
790 прекрасный 1
791 высший 0
803 тёмный 1
810 гражданский 0
848 внешний 1
857 боевой 0
870 рабочий 1
872 глубокий 1
885 долгий 0 долог
892 прямой 1
896 финансовый 0
897 открытый 1
904 знакомый 1
908 нынешний 0
921 исторический 0
923 народный 1
929 знаменитый 1
933 больший 0
940 пустой 1
941 очередной 1
949 судебный 1
958 зелёный 1
966 немецкий 0
967 золотой 1
969 технический 0
970 нормальный 1
974 некий 0
976 городской 0
978 соответствующий 0
992 любимый 1
993 родной 1
994 западный 1
1000 быстрый 1
1008 холодный 1
1012 конкретный 1
1018 иностранный 0
1020 ученый 1
1022 левый 1
1023 счастливый 1
1035 святой 1
1037 точный 1
1053 частый 1
1058 значительный 1
1067 связанный 0 связан
1073 уверенный 0 уверен
1075 тонкий 0 тонок
1076 центральный 1
1083 будущий 0
1104 физический 0
1117 частный 1
1119 мелкий 0 мелок
1121 английский 1
1122 постоянный 1
1131 тихий 1
1138 целый 1
1158 европейский 0
1162 ближайший 0
1163 отечественный 0
1164 теплый 0
1166 духовный 1
1168 прежний 0
1182 остальной 0
1190 профессиональный 1
1191 французский 0
1192 женский 0
1193 крайний 0
1208 божий 0
1215 дальнейший 0
1225 естественный 1
1229 информационный 0
1234 железный 1
1240 горячий 1
1248 веселый 1
1267 официальный 1
1271 серый 1
1272 животный 1
1276 опасный 1
1284 прочий 0
1302 слабый 1
1306 яркий 0 ярок
1311 больной 1
1314 летний 0
1315 дополнительный 1
1323 правильный 1
1326 лесной 0
1334 прочий 0
1343 умный 1
1346 северный 0
1352 ясный 1
1353 милый 1
1355 светлый 1
1359 редкий 0 редок
1362 верный 1
1364 юридический 0
1377 административный 1
1388 узкий 0 узок
1397 художественный 1
1404 древний 1
1408 массовый 0
1410 генеральный 1
1411 замечательный 1
1421 задний 1
1422 региональный 1
1429 здоровый 1
1438 активный 1
1439 литературный 1
1452 острый 1
1455 богатый 1
1459 творческий 0
1462 мягкий 0 мягок
1463 ночной 0
1468 налоговый 0
1469 толстый 0 толст
1476 бедный 1
1480 верхний 0
1482 вечный 1
1484 лишний 0
1485 морской 0
1487 нижний 1
1488 спокойный 0 спокоен
1493 сухой 1
1498 синий 0
1503 сегодняшний 0
1509 медицинский 0
1519 свежий 1
1520 трудный 1
1521 уголовный 1
1582 желтый 1 желт
1596 мощный 1
1617 русский 0
1618 деревянный 1
1628 полезный 1
1632 дальний 1
1644 домашний 0
1647 традиционный 1
1654 жесткий 1
1655 крепкий 1
1659 виноватый 1
1663 культурный 1
1666 приятный 1
1682 круглый 0 кругл
1687 понятный 1
1688 голубой 0
1690 удивительный 1
1692 знакомый 1
1694 мужской 0
1696 правовой 0
1700 больной 1
1705 мертвый 0 мертв
1714 совместный 1
1718 семейный 0
1734 природный 1
1748 православный 1
1750 учебный 1
1756 эффективный 1
1780 материальный 1
1781 невозможный 1
1814 соседний 0
1815 психологический 0
1823 музыкальный 1
1834 голый 1
1838 обязательный 1
1845 исполнительный 1
1848 партийный 0
1859 существенный 1
1869 восточный 1
1880 рабочий 0
1882 сельский 0
1883 характерный 1
1886 неожиданный 1
1896 видный 1
1904 честный 1
1910 резкий 0 резок
1912 младший 0
1920 трудовой 0
1922 строгий 1
1931 южный 1
1932 практический 0
1933 многочисленный 1
1935 согласный 1
1943 спортивный 1
1947 истинный 1
1956 злой 0 зол
1961 индивидуальный 1
1965 мокрый 1
1969 дикий 1
1981 коммерческий 0
1983 театральный 1
1988 воздушный 1
1989 дешевый 1
1993 пьяный 1
первый 0
второй 0
третий 0
четвертый 0
пятый 0
шестой 0
седьмой 0
восьмой 0
девятый 0
десятый 0
одиннадцатый 0
двенадцатый 0
тринадцатый 0
четырнадцатый 0
пятнадцатый 0
шестнадцатый 0
семнадцатый 0
восемнадцатый 0
девятнадцатый 0
двадцатый 0
тридцатый 0
сороковой 0
пятидетятый 0
шестидесятый 0
семидесятый 0
восмидесятый 0
девяностый 0
сотый 0
тысячный 0
миллионный 0
миллиардный 0
триллионный 0
Binary file not shown.
+871
View File
@@ -0,0 +1,871 @@
Номер Слово Род / число Есть единственное число Есть множественное число Есть стандартное или альтернативное множественное число, без удаления гласных Есть стандартное или альтернативное множественное число, полученное путем удаления последней гласной из базы Есть стандартное окончание множественного числа "Есть альтернативное окончание множественного числа ""а/я""" Специальные мн. числа Может быть одушевленным Может быть неодушевленным Перевод 1 Комментарий 1 Пример 1 Перевод 2 Комментарий 2 Пример 2 Перевод 3 Комментарий 3 Пример 3
28 год м 1 1 1 0 1 1 0 1 年 Год закончился (今年完成)
39 человек м 1 1 1 0 1 0 люди 1 0
52 время с 1 1 0 0 0 0 времена 0 1
65 дело с 1 1 1 0 1 0 0 1
66 жизнь ж 1 1 1 0 1 0 0 1
71 день м 1 1 0 1 1 0 0 1
74 рука ж 1 1 1 0 1 0 0 1
87 работа ж 1 1 1 0 1 0 0 1
94 слово с 1 1 1 0 1 0 0 1
98 место с 1 1 1 0 1 0 0 1
104 лицо с 1 1 1 0 1 0 0 1
106 друг м 1 1 0 0 0 0 друзья 1 0
110 глаз м 1 1 1 0 0 1 0 1
114 вопрос м 1 1 1 0 1 0 0 1
118 дом м 1 1 1 0 0 1 0 1
121 сторона ж 1 1 1 0 1 0 0 1
125 страна ж 1 1 1 0 1 0 0 1
128 мир м 1 1 1 0 1 0 0 1
131 случай м 1 1 1 0 1 0 0 1
132 голова ж 1 1 1 0 1 0 0 1
137 ребенок м 1 1 0 0 0 0 ребята 1 0
140 сила ж 1 1 1 0 1 0 0 1
142 конец м 1 1 0 1 1 0 0 1
145 вид м 1 1 1 0 1 0 0 1
146 система ж 1 1 1 0 1 0 0 1
154 часть ж 1 1 1 0 1 0 0 1
156 город м 1 1 1 0 0 1 0 1
162 отношение с 1 1 1 0 1 0 0 1
171 женщина ж 1 1 1 0 1 0 1 0
178 деньги ж 0 1 1 0 1 0 0 1
184 земля ж 1 1 1 0 1 0 0 1
187 машина ж 1 1 1 0 1 0 0 1
191 вода ж 1 1 1 0 1 0 0 1
192 отец м 1 1 0 1 1 0 1 0
197 проблема ж 1 1 1 0 1 0 0 1
200 час м 1 1 1 0 1 0 0 1
203 право с 1 1 1 0 1 0 0 1
208 решение с 1 1 1 0 1 0 0 1
205 нога ж 1 1 1 0 1 0 0 1
210 дверь ж 1 1 1 0 1 0 0 1
212 образ м 1 1 1 0 1 0 0 1
214 история ж 1 1 1 0 1 0 0 1
216 власть ж 1 1 1 0 1 0 0 1
217 закон м 1 1 1 0 1 0 0 1
219 война ж 1 1 1 0 1 0 0 1
220 бог м 1 1 1 0 1 0 1 0
221 голос м 1 1 1 0 0 1 0 1
226 тысяча ж 1 1 1 0 1 0 0 1
230 книга ж 1 1 1 0 1 0 0 1
234 возможность ж 1 1 1 0 1 0 0 1
235 результат м 1 1 1 0 1 0 0 1
236 ночь ж 1 1 1 0 1 0 0 1
237 стол м 1 1 1 0 1 0 0 1
239 имя с 1 1 0 0 0 0 имена 0 1
240 область ж 1 1 1 0 1 0 0 1
244 статья ж 1 1 1 0 1 0 0 1
246 число с 1 1 1 0 1 0 0 1
247 компания ж 1 1 1 0 1 0 0 1
252 народ м 1 1 1 0 1 0 0 1
255 жена ж 1 1 1 0 1 0 1 0
258 группа ж 1 1 1 0 1 0 0 1
259 развитие с 1 1 1 0 1 0 0 1
260 процесс м 1 1 1 0 1 0 0 1
261 суд м 1 1 1 0 1 0 0 1
265 условие с 1 1 1 0 1 0 0 1
268 средство с 1 1 1 0 1 0 0 1
270 начало с 1 1 1 0 1 0 0 1
272 свет м 1 0 0 0 0 0 0 1
273 пора ж 1 1 1 0 1 0 0 1
274 путь м 1 1 1 0 1 0 0 1
275 душа ж 1 1 1 0 1 0 0 1
280 уровень м 1 1 0 1 1 0 0 1
282 форма ж 1 1 1 0 1 0 0 1
283 связь ж 1 1 1 0 1 0 0 1
285 минута ж 1 1 1 0 1 0 0 1
292 улица ж 1 1 1 0 1 0 0 1
295 вечер м 1 1 1 0 0 1 0 1
298 качество с 1 1 1 0 1 0 0 1
299 мысль ж 1 1 1 0 1 0 0 1
300 дорога ж 1 1 1 0 1 0 0 1
301 мать ж 1 1 0 0 0 0 матери 1 0
302 действие с 1 1 1 0 1 0 0 1
303 месяц м 1 1 1 0 1 0 0 1
305 государство с 1 1 1 0 1 0 0 1
306 язык м 1 1 1 0 1 0 0 1
307 любовь ж 1 0 0 0 0 0 0 1
308 взгляд м 1 1 1 0 1 0 0 1
309 мама ж 1 1 1 0 1 0 1 0
314 век м 1 1 1 0 0 1 0 1
315 школа ж 1 1 1 0 1 0 0 1
318 цель ж 1 1 1 0 1 0 0 1
320 общество с 1 1 1 0 1 0 0 1
322 деятельность ж 1 1 1 0 1 0 0 1
323 организация ж 1 1 1 0 1 0 0 1
326 президент м 1 1 1 0 1 0 1 0
327 комната ж 1 1 1 0 1 0 0 1
328 порядок м 1 1 0 1 1 0 0 1
329 момент м 1 1 1 0 1 0 0 1
330 театр м 1 1 1 0 1 0 0 1
333 письмо с 1 1 1 0 1 0 0 1
336 утро с 1 1 1 0 1 0 0 1
338 помощь ж 1 0 0 0 0 0 0 1
339 ситуация ж 1 1 1 0 1 0 0 1
340 роль ж 1 1 1 0 1 0 0 1
343 рубль м 1 1 1 0 1 0 0 1
346 смысл м 1 1 1 0 1 0 0 1
347 состояние с 1 1 1 0 1 0 0 1
350 квартира ж 1 1 1 0 1 0 0 1
354 орган м 1 1 1 0 1 0 0 1
355 внимание с 1 1 1 0 1 0 0 1
356 тело с 1 1 1 0 1 0 0 1
357 труд м 1 1 1 0 1 0 0 1
360 сын м 1 1 1 0 1 0 1 0
361 мера ж 1 1 1 0 1 0 0 1
363 смерть ж 1 1 1 0 1 0 0 1
365 рынок м 1 1 0 1 1 0 0 1
366 программа ж 1 1 1 0 1 0 0 1
367 задача ж 1 1 1 0 1 0 0 1
368 предприятие с 1 1 1 0 1 0 0 1
370 окно с 1 1 1 0 1 0 0 1
374 разговор м 1 1 1 0 1 0 0 1
376 правительство с 1 1 1 0 1 0 0 1
378 семья ж 1 1 1 0 1 0 0 1
380 производство с 1 1 1 0 1 0 0 1
388 информация ж 1 1 1 0 1 0 0 1
390 положение с 1 1 1 0 1 0 0 1
394 центр м 1 1 1 0 1 0 0 1
396 ответ м 1 1 1 0 1 0 0 1
397 муж м 1 1 1 0 1 0 1 0
398 автор м 1 1 1 0 1 0 1 0
400 стена ж 1 1 1 0 1 0 0 1
403 интерес м 1 1 1 0 1 0 0 1
405 федерация ж 1 1 1 0 1 0 0 1
406 правило с 1 1 1 0 1 0 0 1
410 управление с 1 1 1 0 1 0 0 1
416 мужчина м 1 1 1 0 1 0 1 0
418 правда ж 1 1 1 0 1 0 0 1
419 идея ж 1 1 1 0 1 0 0 1
420 партия ж 1 1 1 0 1 0 0 1
430 совет м 1 1 1 0 1 0 0 1
431 счёт м 1 1 1 0 1 1 0 1
432 сердце с 1 1 1 0 1 0 0 1
433 движение с 1 1 1 0 1 0 0 1
434 вещь ж 1 1 1 0 1 0 0 1
435 материал м 1 1 1 0 1 0 0 1
436 неделя ж 1 1 1 0 1 0 0 1
437 чувство с 1 1 1 0 1 0 0 1
443 глава ж 1 1 1 0 1 0 0 1
446 наука ж 1 1 1 0 1 0 0 1
448 ряд м 1 1 1 0 1 0 0 1
449 газета ж 1 1 1 0 1 0 0 1
450 причина ж 1 1 1 0 1 0 0 1
452 плечо с 1 1 0 0 1 0 плечи 0 1
454 цена ж 1 1 1 0 1 0 0 1
455 план м 1 1 1 0 1 0 0 1
457 речь ж 1 1 1 0 1 0 0 1
460 точка ж 1 1 1 0 1 0 0 1
461 основа ж 1 1 1 0 1 0 0 1
462 товарищ м 1 1 1 0 1 0 1 0
463 культура ж 1 1 1 0 1 0 0 1
471 мнение с 1 1 1 0 1 0 0 1
474 документ м 1 1 1 0 1 0 0 1
475 институт м 1 1 1 0 1 0 0 1
476 ход м 1 1 1 0 1 0 0 1
479 проект м 1 1 1 0 1 0 0 1
481 встреча ж 1 1 1 0 1 0 0 1
484 директор м 1 1 1 0 1 1 1 0
494 срок м 1 1 1 0 1 0 0 1
495 палец м 1 1 0 1 0 0 0 1
496 опыт м 1 1 1 0 1 0 0 1
500 служба ж 1 1 1 0 1 0 0 1
507 судьба ж 1 1 1 0 1 0 0 1
509 девушка ж 1 1 1 0 1 0 1 0
511 очередь ж 1 1 1 0 1 0 0 1
512 лес м 1 1 1 0 0 1 0 1
517 состав м 1 1 1 0 1 0 0 1
522 член м 1 1 1 0 1 0 1 1
525 количество с 1 1 1 0 1 0 0 1
527 событие с 1 1 1 0 1 0 0 1
528 объект м 1 1 1 0 1 0 0 1
529 зал м 1 1 1 0 1 0 0 1
533 значение с 1 1 1 0 1 0 0 1
536 период м 1 1 1 0 1 0 0 1
538 шаг м 1 1 1 0 1 0 0 1
542 брат м 1 1 0 0 0 0 братья 1 0
543 искусство с 1 1 1 0 1 0 0 1
546 структура ж 1 1 1 0 1 0 0 1
548 номер м 1 1 1 0 1 1 0 1
550 пример м 1 1 1 0 1 0 0 1
552 исследование с 1 1 1 0 1 0 0 1
553 гражданин м 1 1 0 0 0 0 граждане 1 0
556 игра ж 1 1 1 0 1 0 0 1
557 начальник м 1 1 1 0 1 0 1 0
559 рост м 1 1 1 0 1 0 0 1
562 тема ж 1 1 1 0 1 0 0 1
563 принцип м 1 1 1 0 1 0 0 1
569 метод м 1 1 1 0 1 0 0 1
570 тип м 1 1 1 0 1 0 0 1
571 фильм м 1 1 1 0 1 0 0 1
576 край м 1 1 1 0 0 1 0 1
579 гость м 1 1 1 0 1 0 1 0
583 воздух м 1 0 0 0 0 0 0 1
588 характер м 1 1 1 0 1 0 0 1
589 борьба ж 1 0 0 0 0 0 0 1
590 использование с 1 1 1 0 1 0 0 1
593 размер м 1 1 1 0 1 0 0 1
595 образование с 1 1 1 0 1 0 0 1
597 мальчик м 1 1 1 0 1 0 1 0
598 кровь ж 1 0 0 0 0 0 0 1
599 район м 1 1 1 0 1 0 0 1
600 небо с 1 1 0 0 0 0 небеса 0 1
602 армия ж 1 1 1 0 1 0 0 1
603 класс м 1 1 1 0 1 0 0 1
604 представитель м 1 1 1 0 1 0 1 0
605 участие с 1 1 1 0 1 0 0 1
606 девочка ж 1 1 1 0 1 0 1 0
607 политика ж 1 1 1 0 1 0 0 1
609 герой м 1 1 1 0 1 0 1 0
610 картина ж 1 1 1 0 1 0 0 1
612 доллар м 1 1 1 0 1 0 0 1
613 спина ж 1 1 1 0 1 0 0 1
614 территория ж 1 1 1 0 1 0 0 1
616 пол м 1 1 1 0 1 0 0 1
619 поле с 1 1 1 0 1 0 0 1
621 изменение с 1 1 1 0 1 0 0 1
624 направление с 1 1 1 0 1 0 0 1
625 рисунок м 1 1 0 1 1 0 0 1
626 течение с 1 1 1 0 1 0 0 1
628 церковь ж 1 1 1 0 1 0 0 1
629 банк м 1 1 1 0 1 0 0 1
633 сцена ж 1 1 1 0 1 0 0 1
634 население с 1 0 0 0 0 0 0 1
635 большинство с 1 0 0 0 0 0 0 1
639 музыка ж 1 1 1 0 1 0 0 1
641 правда ж 1 1 1 0 1 0 0 1
644 свобода ж 1 1 1 0 1 0 0 1
645 память ж 1 0 0 0 0 0 0 1
648 команда ж 1 1 1 0 1 0 0 1
650 союз м 1 1 1 0 1 0 0 1
653 врач м 1 1 1 0 1 0 1 0
655 договор м 1 1 1 0 1 1 0 1
659 дерево с 1 1 1 0 1 0 0 1
661 факт м 1 1 1 0 1 0 0 1
664 хозяин м 1 1 0 0 0 0 хозяева 1 0
668 природа ж 1 1 1 0 1 0 0 1
674 угол м 1 1 0 1 1 0 0 1
676 телефон м 1 1 1 0 1 0 0 1
677 позиция ж 1 1 1 0 1 0 0 1
681 двор м 1 1 1 0 1 0 0 1
685 писатель м 1 1 1 0 1 0 1 0
686 самолёт м 1 1 1 0 1 0 0 1
687 объём м 1 1 1 0 1 0 0 1
689 род м 1 1 1 0 1 1 0 1
690 солнце с 1 1 1 0 1 0 0 1
691 вера ж 1 1 1 0 1 0 0 1
692 берег м 1 1 1 0 0 1 0 1
693 спектакль м 1 1 1 0 1 0 0 1
694 фирма ж 1 1 1 0 1 0 0 1
695 способ м 1 1 1 0 1 0 0 1
696 завод м 1 1 1 0 1 0 0 1
697 цвет м 1 1 1 0 0 1 0 1
699 журнал м 1 1 1 0 1 0 0 1
700 руководитель м 1 1 1 0 1 0 1 0
701 специалист м 1 1 1 0 1 0 1 0
706 оценка ж 1 1 1 0 1 0 0 1
713 регион м 1 1 1 0 1 0 0 1
715 песня ж 1 1 1 0 1 0 0 1
716 процент м 1 1 1 0 1 0 0 1
717 родитель м 1 1 1 0 1 0 1 0
720 море с 1 1 1 0 1 0 0 1
722 требование с 1 1 1 0 1 0 0 1
726 основание с 1 1 1 0 1 0 0 1
727 половина ж 1 1 1 0 1 0 0 1
733 роман м 1 1 1 0 1 0 0 1
734 круг м 1 1 1 0 1 0 0 1
735 анализ м 1 1 1 0 1 0 0 1
736 стих м 1 1 1 0 1 0 0 1
737 автомобиль м 1 1 1 0 1 0 0 1
739 экономика ж 1 1 1 0 1 0 0 1
740 литература ж 1 0 0 0 0 0 0 1
741 бумага ж 1 1 1 0 1 0 0 1
747 поэт м 1 1 1 0 1 0 1 0
749 степень ж 1 1 1 0 1 0 0 1
752 господин м 1 1 0 0 0 0 господа 1 0
753 надежда ж 1 1 1 0 1 0 0 1
756 предмет м 1 1 1 0 1 0 0 1
759 вариант м 1 1 1 0 1 0 0 1
760 министр м 1 1 1 0 1 0 1 0
763 граница ж 1 1 1 0 1 0 0 1
765 дух м 1 1 1 0 1 0 0 1
766 модель ж 1 1 1 0 1 0 0 1
767 операция ж 1 1 1 0 1 0 0 1
768 пара ж 1 1 1 0 1 0 0 1
769 сон м 1 1 0 1 1 0 0 1
771 название с 1 1 1 0 1 0 0 1
772 ум м 1 1 1 0 1 0 0 1
773 повод м 1 1 1 0 1 0 0 1
774 старик м 1 1 1 0 1 0 1 0
777 миллион м 1 1 1 0 1 0 0 1
780 успех м 1 1 1 0 1 0 0 1
784 счастье с 1 0 0 0 0 0 0 1
787 ребята м 0 1 1 0 1 0 0 1
789 кабинет м 1 1 1 0 1 0 0 1
794 магазин м 1 1 1 0 1 0 0 1
795 пространство с 1 1 1 0 1 0 0 1
796 выход м 1 1 1 0 1 0 0 1
798 удар м 1 1 1 0 1 0 0 1
799 база ж 1 1 1 0 1 0 0 1
800 знание с 1 1 1 0 1 0 0 1
801 текст м 1 1 1 0 1 0 0 1
804 защита ж 1 1 1 0 1 0 0 1
806 руководство с 1 1 1 0 1 0 0 1
808 площадь ж 1 1 1 0 1 0 0 1
809 сознание с 1 1 1 0 1 0 0 1
812 возраст м 1 1 1 0 1 0 0 1
815 участник м 1 1 1 0 1 0 1 0
816 участок м 1 1 0 1 1 0 0 1
818 пункт м 1 1 1 0 1 0 0 1
823 линия ж 1 1 1 0 1 0 0 1
825 желание с 1 1 1 0 1 0 0 1
826 папа м 1 1 1 0 1 0 1 0
829 доктор м 1 1 1 0 1 1 1 0
830 губа ж 1 1 1 0 1 0 0 1
834 дочь ж 1 1 0 0 0 0 дочери 1 0
836 среда ж 1 1 1 0 1 0 0 1
837 председатель м 1 1 1 0 1 0 1 0
838 представление с 1 1 1 0 1 0 0 1
839 солдат м 1 1 1 0 1 0 1 0
840 художник м 1 1 1 0 1 0 1 0
842 волос м 1 1 1 0 1 0 0 1
843 оружие с 1 1 1 0 1 0 0 1
845 соответствие с 1 1 1 0 1 0 0 1
847 ветер м 1 1 0 1 1 1 0 1
849 парень м 1 1 0 1 1 0 1 0
851 зрение с 1 1 1 0 1 0 0 1
853 генерал м 1 1 1 0 1 0 1 0
855 огонь м 1 1 0 1 1 0 0 1
858 понятие с 1 1 1 0 1 0 0 1
859 строительство с 1 1 1 0 1 0 0 1
860 ухо с 1 1 0 0 0 0 уши 0 1
862 грудь ж 1 1 1 0 1 0 0 1
863 нос м 1 1 1 0 1 0 0 1
868 страх м 1 1 1 0 1 0 0 1
869 услуга ж 1 1 1 0 1 0 0 1
873 содержание с 1 1 1 0 1 0 0 1
874 радость ж 1 1 1 0 1 0 0 1
875 безопасность ж 1 1 1 0 1 0 0 1
877 продукт м 1 1 1 0 1 0 0 1
879 комплекс м 1 1 1 0 1 0 0 1
880 бизнес м 1 1 1 0 1 0 0 1
884 сад м 1 1 1 0 1 0 0 1
888 сотрудник м 1 1 1 0 1 0 1 0
889 лето с 1 0 0 0 0 0 0 1
893 курс м 1 1 1 0 1 0 0 1
895 предложение с 1 1 1 0 1 0 0 1
901 рот м 1 1 0 1 1 0 0 1
903 технология ж 1 1 1 0 1 0 0 1
906 реформа ж 1 1 1 0 1 0 0 1
907 отсутствие с 1 1 1 0 1 0 0 1
909 собака ж 1 1 1 0 1 0 1 0
910 камень м 1 1 0 1 1 0 0 1
911 будущее с 1 0 0 0 0 0 0 1
913 рассказ м 1 1 1 0 1 0 0 1
914 контроль м 1 1 1 0 1 0 0 1
916 река ж 1 1 1 0 1 0 0 1
918 продукция ж 1 1 1 0 1 0 0 1
919 сумма ж 1 1 1 0 1 0 0 1
920 техника ж 1 1 1 0 1 0 0 1
927 здание с 1 1 1 0 1 0 0 1
928 сфера ж 1 1 1 0 1 0 0 1
932 необходимость ж 1 1 1 0 1 0 0 1
934 фонд м 1 1 1 0 1 0 0 1
937 подготовка ж 1 1 1 0 1 0 0 1
939 лист м 1 1 1 0 1 0 0 1
942 республика ж 1 1 1 0 1 0 0 1
943 хозяйство с 1 1 1 0 1 0 0 1
948 воля ж 1 1 1 0 1 0 0 1
950 бюджет м 1 1 1 0 1 0 0 1
953 снег м 1 1 1 0 0 1 0 1
954 деревня ж 1 1 1 0 1 0 0 1
956 мужик м 1 1 1 0 1 0 1 0
959 элемент м 1 1 1 0 1 0 0 1
960 обстоятельство с 1 1 1 0 1 0 0 1
962 немец м 1 1 0 1 1 0 1 0
964 победа ж 1 1 1 0 1 0 0 1
965 источник м 1 1 1 0 1 0 0 1
975 звезда ж 1 1 1 0 1 0 0 1
977 выбор м 1 1 1 0 1 0 0 1
979 масса ж 1 1 1 0 1 0 0 1
981 итог м 1 1 1 0 1 0 0 1
982 сестра ж 1 1 1 0 1 0 1 0
986 практика ж 1 1 1 0 1 0 0 1
990 проведение с 1 1 1 0 1 0 0 1
991 карман м 1 1 1 0 1 0 0 1
996 слава ж 1 1 1 0 1 0 0 1
997 кухня ж 1 1 1 0 1 0 0 1
998 определение с 1 1 1 0 1 0 0 1
1001 функция ж 1 1 1 0 1 0 0 1
1002 войско с 1 1 1 0 1 0 0 1
1003 комиссия ж 1 1 1 0 1 0 0 1
1004 применение с 1 1 1 0 1 0 0 1
1005 капитан м 1 1 1 0 1 0 1 0
1006 работник м 1 1 1 0 1 0 1 0
1009 обеспечение с 1 1 1 0 1 0 0 1
1010 офицер м 1 1 1 0 1 0 1 0
1013 фамилия ж 1 1 1 0 1 0 0 1
1014 предел м 1 1 1 0 1 0 0 1
1017 выборы м 0 1 1 0 1 0 0 1
1024 бутылка ж 1 1 1 0 1 0 0 1
1025 бой м 1 1 1 0 1 0 0 1
1029 теория ж 1 1 1 0 1 0 0 1
1030 зона ж 1 1 1 0 1 0 0 1
1031 отдел м 1 1 1 0 1 0 0 1
1032 зуб м 1 1 1 0 1 0 0 1
1033 разработка ж 1 1 1 0 1 0 0 1
1039 личность ж 1 1 1 0 1 0 1 1
1040 гора ж 1 1 1 0 1 0 0 1
1042 товар м 1 1 1 0 1 0 0 1
1046 метр м 1 1 1 0 1 0 0 1
1049 праздник м 1 1 1 0 1 0 0 1
1050 влияние с 1 1 1 0 1 0 0 1
1052 читатель м 1 1 1 0 1 0 1 0
1054 удовольствие с 1 1 1 0 1 0 0 1
1055 актер м 1 1 1 0 1 0 1 0
1056 слеза ж 1 1 1 0 1 0 0 1
1059 ответственность ж 1 1 1 0 1 0 0 1
1060 учитель м 1 1 1 0 0 1 1 0
1061 акт м 1 1 1 0 1 0 0 1
1065 боль ж 1 1 1 0 1 0 0 1
1066 множество с 1 1 1 0 1 0 0 1
1068 особенность ж 1 1 1 0 1 0 0 1
1070 показатель м 1 1 1 0 1 0 0 1
1072 корабль м 1 1 1 0 1 0 0 1
1074 звук м 1 1 1 0 1 0 0 1
1077 впечатление с 1 1 1 0 1 0 0 1
1079 частность ж 1 1 1 0 1 0 0 1
1080 детство с 1 0 0 0 0 0 0 1
1081 вывод м 1 1 1 0 1 0 0 1
1082 профессор м 1 1 1 0 1 0 1 0
1084 доля ж 1 1 1 0 1 0 0 1
1085 норма ж 1 1 1 0 1 0 0 1
1087 прошлое с 1 0 0 0 0 0 0 1
1089 командир м 1 1 1 0 1 0 1 0
1090 коридор м 1 1 1 0 1 0 0 1
1091 поддержка ж 1 1 1 0 1 0 0 1
1092 рамка ж 1 1 1 0 1 0 0 1
1096 враг м 1 1 1 0 1 0 0 1
1098 этап м 1 1 1 0 1 0 0 1
1099 черт м 1 1 1 0 1 0 0 1
1100 дед м 1 1 1 0 1 0 1 0
1102 собрание с 1 1 1 0 1 0 0 1
1103 прием м 1 1 1 0 1 0 0 1
1105 болезнь м 1 1 1 0 1 0 0 1
1106 клетка ж 1 1 1 0 1 0 0 1
1107 кожа ж 1 1 1 0 1 0 0 1
1108 заявление с 1 1 1 0 1 0 0 1
1110 попытка ж 1 1 1 0 1 0 0 1
1111 сравнение с 1 1 1 0 1 0 0 1
1113 расчет м 1 1 1 0 1 0 0 1
1115 депутат м 1 1 1 0 1 0 1 0
1123 комитет м 1 1 1 0 1 0 0 1
1124 знак м 1 1 1 0 1 0 0 1
1128 дядя м 1 1 1 0 1 0 1 0
1129 учет м 1 1 1 0 1 0 0 1
1130 хлеб м 1 1 1 0 1 1 0 1
1136 чай м 1 1 1 0 1 0 0 1
1137 режим м 1 1 1 0 1 0 0 1
1139 вирус м 1 1 1 0 1 0 0 1
1142 выражение с 1 1 1 0 1 0 0 1
1146 здоровье с 1 0 0 0 0 0 0 1
1147 зима ж 1 1 1 0 1 0 0 1
1150 десяток м 1 1 0 1 1 0 0 1
1151 глубина ж 1 1 1 0 1 0 0 1
1152 сеть ж 1 1 1 0 1 0 0 1
1153 студент м 1 1 1 0 1 0 1 0
1155 секунда ж 1 1 1 0 1 0 0 1
1156 скорость ж 1 1 1 0 1 0 0 1
1157 поиск м 1 1 1 0 1 0 0 1
1159 суть ж 1 1 1 0 1 0 0 1
1160 налог м 1 1 1 0 1 0 0 1
1161 ошибка ж 1 1 1 0 1 0 0 1
1167 доход м 1 1 1 0 1 0 0 1
1169 режиссер м 1 1 1 0 1 0 1 0
1170 поверхность ж 1 1 1 0 1 0 0 1
1171 ощущение с 1 1 1 0 1 0 0 1
1173 карта ж 1 1 1 0 1 0 0 1
1174 клуб м 1 1 1 0 1 0 0 1
1176 станция ж 1 1 1 0 1 0 0 1
1177 революция ж 1 1 1 0 1 0 0 1
1178 колено с 1 1 1 0 1 0 0 1
1179 министерство с 1 1 1 0 1 0 0 1
1180 стекло с 1 1 1 0 1 0 0 1
1181 этаж м 1 1 1 0 1 0 0 1
1183 высота ж 1 1 1 0 1 0 0 1
1185 бабушка ж 1 1 1 0 1 0 1 0
1188 трубка ж 1 1 1 0 1 0 0 1
1195 газ м 1 1 1 0 1 0 0 1
1197 мастер м 1 1 1 0 1 1 1 0
1200 поведение с 1 0 0 0 0 0 0 1
1205 столица ж 1 1 1 0 1 0 0 1
1206 механизм м 1 1 1 0 1 0 0 1
1207 передача ж 1 1 1 0 1 0 0 1
1210 способность ж 1 1 1 0 1 0 0 1
1211 подход м 1 1 1 0 1 0 0 1
1214 энергия ж 1 1 1 0 1 0 0 1
1216 существование с 1 1 1 0 1 0 0 1
1217 исполнение с 1 1 1 0 1 0 0 1
1219 кино с 1 0 0 0 0 0 0 1
1220 сожаление с 1 1 1 0 1 0 0 1
1221 заместитель м 1 1 1 0 1 0 1 0
1226 ресурс м 1 1 1 0 1 0 0 1
1228 акция ж 1 1 1 0 1 0 0 1
1230 рождение с 1 1 1 0 1 0 0 1
1233 администрация ж 1 1 1 0 1 0 0 1
1237 стоимость ж 1 1 1 0 1 0 0 1
1238 улыбка ж 1 1 1 0 1 0 0 1
1239 артист м 1 1 1 0 1 0 1 0
1246 сосед м 1 1 1 0 1 0 1 0
1247 фраза ж 1 1 1 0 1 0 0 1
1249 фигура ж 1 1 1 0 1 0 1 1
1251 субъект м 1 1 1 0 1 0 0 1
1253 реакция ж 1 1 1 0 1 0 0 1
1254 список м 1 1 0 1 1 0 0 1
1255 фотография ж 1 1 1 0 1 0 0 1
1256 журналист м 1 1 1 0 1 0 1 0
1257 май м 1 1 1 0 1 0 0 1
1260 нарушение с 1 1 1 0 1 0 0 1
1261 заседание с 1 1 1 0 1 0 0 1
1262 толпа ж 1 1 1 0 1 0 0 1
1263 больница ж 1 1 1 0 1 0 0 1
1264 существо с 1 1 1 0 1 0 0 1
1268 свойство с 1 1 1 0 1 0 0 1
1269 долг м 1 1 1 0 1 0 0 1
1270 поколение с 1 1 1 0 1 0 0 1
1273 схема ж 1 1 1 0 1 0 0 1
1274 усилие с 1 1 1 0 1 0 0 1
1275 отличие с 1 1 1 0 1 0 0 1
1278 остров м 1 1 1 0 0 1 0 1
1280 противник м 1 1 1 0 1 0 1 0
1281 волна ж 1 1 1 0 1 0 0 1
1285 реализация ж 1 1 1 0 1 0 0 1
1286 страница ж 1 1 1 0 1 0 0 1
1287 формирование с 1 1 1 0 1 0 0 1
1288 житель м 1 1 1 0 1 0 1 0
1291 красота ж 1 1 1 0 1 0 0 1
1294 птица ж 1 1 1 0 1 0 1 1
1297 растение с 1 1 1 0 1 0 0 1
1298 тень ж 1 1 1 0 1 0 0 1
1299 явление с 1 1 1 0 1 0 0 1
1300 храм м 1 1 1 0 1 0 0 1
1301 запах м 1 1 1 0 1 0 0 1
1303 водка ж 1 0 0 0 0 0 0 1
1304 наличие с 1 0 0 0 0 0 0 1
1307 ужас м 1 1 1 0 1 0 0 1
1308 одежда ж 1 1 1 0 1 0 0 1
1310 кресло с 1 1 1 0 1 0 0 1
1312 поезд м 1 1 1 0 0 1 0 1
1313 университет м 1 1 1 0 1 0 0 1
1317 традиция ж 1 1 1 0 1 0 0 1
1318 адрес м 1 1 1 0 1 1 0 1
1319 декабрь м 1 1 1 0 1 0 0 1
1320 ладонь ж 1 1 1 0 1 0 0 1
1322 сведение с 1 1 1 0 1 0 0 1
1324 цветок м 1 1 0 1 1 0 0 1
1327 лидер м 1 1 1 0 1 0 0 1
1328 октябрь м 1 1 1 0 1 0 0 1
1329 занятие с 1 1 1 0 1 0 0 1
1332 сентябрь м 1 1 1 0 1 0 0 1
1333 помещение с 1 1 1 0 1 0 0 1
1336 январь м 1 1 1 0 1 0 0 1
1338 зритель м 1 1 1 0 1 0 1 0
1341 редакция ж 1 1 1 0 1 0 0 1
1344 стиль м 1 1 1 0 1 0 0 1
1345 весна ж 1 0 0 0 0 0 0 1
1347 фактор м 1 1 1 0 1 0 0 1
1348 август м 1 1 1 0 1 0 0 1
1349 известие с 1 1 1 0 1 0 0 1
1350 зависимость ж 1 1 1 0 1 0 0 1
1351 охрана ж 1 0 0 0 0 0 0 1
1354 оборудование с 1 0 0 0 0 0 0 1
1356 концерт м 1 1 1 0 1 0 0 1
1357 отделение с 1 1 1 0 1 0 0 1
1358 расход м 1 1 1 0 1 0 0 1
1360 выставка ж 1 1 1 0 1 0 0 1
1361 милиция ж 1 1 1 0 1 0 0 1
1366 переход м 1 1 1 0 1 0 0 1
1368 эпоха ж 1 1 1 0 1 0 0 1
1369 запад м 1 0 0 0 0 0 0 1
1371 произведение с 1 1 1 0 1 0 0 1
1372 родина ж 1 1 1 0 1 0 0 1
1373 собственность ж 1 1 1 0 1 0 0 1
1374 тайна ж 1 1 1 0 1 0 0 1
1378 трава ж 1 1 1 0 1 0 0 1
1380 лагерь м 1 1 1 0 1 1 0 1
1382 имущество с 1 0 0 0 0 0 0 1
1384 кровать ж 1 1 1 0 1 0 0 1
1390 аппарат м 1 1 1 0 1 0 0 1
1393 середина ж 1 1 1 0 1 0 0 1
1396 март м 1 1 1 0 1 0 0 1
1398 клиент м 1 1 1 0 1 0 1 0
1400 дама ж 1 1 1 0 1 0 1 0
1403 фронт м 1 1 1 0 1 0 0 1
1405 отрасль ж 1 1 1 0 1 0 0 1
1406 стул м 1 1 0 0 1 0 стулья 0 1
1407 беседа ж 1 1 1 0 1 0 0 1
1414 законодательство с 1 0 0 0 0 0 0 1
1415 продажа ж 1 1 1 0 1 0 0 1
1416 повышение с 1 1 1 0 1 0 0 1
1420 музей м 1 1 1 0 1 0 0 1
1423 след м 1 1 1 0 1 0 0 1
1425 полковник м 1 1 1 0 1 0 1 0
1427 сомнение с 1 1 1 0 1 0 0 1
1428 понимание с 1 1 1 0 1 0 0 1
1433 апрель м 1 1 1 0 1 0 0 1
1434 князь м 1 1 1 0 1 0 князья 1 0
1436 рыба ж 1 1 1 0 1 0 1 1
1442 дума ж 1 1 1 0 1 0 0 1
1445 кодекс м 1 1 1 0 1 0 0 1
1446 сутки м 0 1 1 0 1 0 0 1
1447 чудо с 1 1 0 0 0 0 чудеса 0 1
1449 шея ж 1 1 1 0 1 0 0 1
1451 судья м 1 1 1 0 1 0 1 0
1456 крыша м 1 1 1 0 1 0 0 1
1457 настроение с 1 1 1 0 1 0 0 1
1460 нечто с 1 0 0 0 0 0 0 1
1461 поток м 1 1 1 0 1 0 0 1
1464 должность ж 1 1 1 0 1 0 0 1
1465 преступление с 1 1 1 0 1 0 0 1
1467 мозг м 1 1 1 0 1 0 0 1
1470 честь ж 1 0 0 0 0 0 0 1
1471 пост м 1 1 1 0 1 0 0 1
1474 еврей м 1 1 1 0 1 0 1 0
1477 июнь м 1 1 1 0 1 0 0 1
1479 сотня ж 1 1 1 0 1 0 0 1
1490 дождь м 1 1 1 0 1 0 0 1
1492 лестница ж 1 1 1 0 1 0 0 1
1497 дача ж 1 1 1 0 1 0 0 1
1500 установка ж 1 1 1 0 1 0 0 1
1501 появление с 1 1 1 0 1 0 0 1
1502 получение с 1 1 1 0 1 0 0 1
1505 образец м 1 1 0 1 1 0 0 1
1506 труба ж 1 1 1 0 1 0 0 1
1512 осень ж 1 1 1 0 1 0 0 1
1518 костюм м 1 1 1 0 1 0 0 1
1522 баба ж 1 1 1 0 1 0 1 0
1523 ценность ж 1 1 1 0 1 0 0 1
1524 обязанность ж 1 1 1 0 1 0 0 1
1525 пьеса ж 1 1 1 0 1 0 0 1
1527 таблица ж 1 1 1 0 1 0 0 1
1528 вино с 1 1 0 0 0 0 вины 0 1
1529 воспоминание с 1 1 1 0 1 0 0 1
1530 лошадь ж 1 1 1 0 1 0 1 1
1534 коллега м 1 1 1 0 1 0 1 0
1535 организм м 1 1 1 0 1 0 0 1
1537 ученик м 1 1 1 0 1 0 1 0
1538 учреждение с 1 1 1 0 1 0 0 1
1540 открытие с 1 1 1 0 1 0 0 1
1542 том м 1 1 1 0 1 1 0 1
1543 черта ж 1 1 1 0 1 0 0 1
1546 характеристика ж 1 1 1 0 1 0 0 1
1549 выполнение с 1 1 1 0 1 0 0 1
1550 оборона ж 1 1 1 0 1 0 0 1
1551 выступление с 1 1 1 0 1 0 0 1
1552 температура ж 1 1 1 0 1 0 0 1
1554 перспектива ж 1 1 1 0 1 0 0 1
1556 подруга ж 1 1 1 0 1 0 1 0
1557 приказ м 1 1 1 0 1 0 0 1
1559 жертва ж 1 1 1 0 1 0 1 1
1562 ресторан м 1 1 1 0 1 0 0 1
1563 километр м 1 1 1 0 1 0 0 1
1565 спор м 1 1 1 0 1 0 0 1
1569 вкус м 1 1 1 0 1 0 0 1
1571 признак м 1 1 1 0 1 0 0 1
1572 промышленность ж 1 1 1 0 1 0 0 1
1574 американец м 1 1 0 1 1 0 1 0
1575 лоб м 1 1 0 1 1 0 0 1
1576 заключение с 1 1 1 0 1 0 0 1
1578 восток м 1 0 0 0 0 0 0 1
1580 исключение с 1 1 1 0 1 0 0 1
1584 ключ м 1 1 1 0 1 0 0 1
1585 постановление с 1 1 1 0 1 0 0 1
1589 слой м 1 1 1 0 1 0 0 1
1590 бок м 1 1 1 0 0 1 0 1
1595 июль м 1 1 1 0 1 0 0 1
1597 перевод м 1 1 1 0 1 0 0 1
1598 секретарь м 1 1 1 0 1 0 1 0
1599 кусок м 1 1 0 1 1 0 0 1
1601 слух м 1 1 1 0 1 0 0 1
1605 польза ж 1 1 1 0 1 0 0 1
1606 звонок м 1 1 0 1 1 0 0 1
1608 обстановка ж 1 1 1 0 1 0 0 1
1613 чиновник м 1 1 1 0 1 0 1 0
1615 соглашение с 1 1 1 0 1 0 0 1
1616 деталь ж 1 1 1 0 1 0 0 1
1619 тишина ж 1 0 0 0 0 0 0 1
1620 зарплата ж 1 1 1 0 1 0 0 1
1622 билет м 1 1 1 0 1 0 0 1
1624 подарок м 1 1 0 1 1 0 0 1
1625 тюрьма ж 1 1 1 0 1 0 0 1
1626 ящик м 1 1 1 0 1 0 0 1
1627 конкурс м 1 1 1 0 1 0 0 1
1629 книжка ж 1 1 1 0 1 0 0 1
1631 изучение с 1 1 1 0 1 0 0 1
1636 просьба ж 1 1 1 0 1 0 0 1
1637 царь м 1 1 1 0 1 0 1 0
1638 публика ж 1 0 0 0 0 0 0 1
1639 смех м 1 1 1 0 0 1 0 1
1641 сообщение с 1 1 1 0 1 0 0 1
1642 угроза ж 1 1 1 0 1 0 0 1
1643 беда ж 1 1 1 0 1 0 0 1
1650 блок м 1 1 1 0 1 0 0 1
1651 достижение с 1 1 1 0 1 0 0 1
1652 назначение с 1 1 1 0 1 0 0 1
1653 реклама ж 1 1 1 0 1 0 0 1
1656 портрет м 1 1 1 0 1 0 0 1
1662 масло с 1 1 1 0 1 0 0 1
1664 стакан м 1 1 1 0 1 0 0 1
1668 урок м 1 1 1 0 1 0 0 1
1672 крик м 1 1 1 0 1 0 0 1
1676 творчество с 1 0 0 0 0 0 0 1
1677 телевизор м 1 1 1 0 1 0 0 1
1679 инструмент м 1 1 1 0 1 0 0 1
1681 концепция ж 1 1 1 0 1 0 0 1
1683 лейтенант м 1 1 1 0 1 0 1 0
1684 экран м 1 1 1 0 1 0 0 1
1685 дно с 1 0 0 0 0 0 0 1
1686 реальность ж 1 1 1 0 1 0 0 1
1689 канал м 1 1 1 0 1 0 0 1
1691 мясо с 1 0 0 0 0 0 0 1
1693 щека ж 1 1 1 0 1 0 0 1
1697 конфликт м 1 1 1 0 1 0 0 1
1698 переговоры м 0 1 1 0 1 0 0 1
1701 запись ж 1 1 1 0 1 0 0 1
1702 пора ж 1 0 0 0 0 0 0 1
1703 вагон м 1 1 1 0 1 0 0 1
1706 площадка ж 1 1 1 0 1 0 0 1
1707 последствие с 1 1 1 0 1 0 0 1
1709 сотрудничество с 1 1 1 0 1 0 0 1
1711 зеркало с 1 1 1 0 1 0 0 1
1712 тон м 1 1 1 0 1 1 0 1
1715 академия ж 1 1 1 0 1 0 0 1
1721 палата ж 1 1 1 0 1 0 0 1
1722 потребность ж 1 1 1 0 1 0 0 1
1725 ноябрь м 1 1 1 0 1 0 0 1
1726 увеличение с 1 1 1 0 1 0 0 1
1728 дурак м 1 1 1 0 1 0 1 0
1730 поездка ж 1 1 1 0 1 0 0 1
1731 обед м 1 1 1 0 1 0 0 1
1733 потеря ж 1 1 1 0 1 0 0 1
1736 февраль м 1 1 1 0 1 0 0 1
1738 мероприятие с 1 1 1 0 1 0 0 1
1739 парк м 1 1 1 0 1 0 0 1
1740 принятие с 1 1 1 0 1 0 0 1
1741 устройство с 1 1 1 0 1 0 0 1
1742 вещество с 1 1 1 0 1 0 0 1
1747 категория ж 1 1 1 0 1 0 0 1
1749 сезон м 1 1 1 0 1 0 0 1
1754 гостиница ж 1 1 1 0 1 0 0 1
1755 издание с 1 1 1 0 1 0 0 1
1761 объединение с 1 1 1 0 1 0 0 1
1763 темнота ж 1 0 0 0 0 0 0 1
1764 человечество с 1 0 0 0 0 0 0 1
1768 колесо с 1 1 1 0 1 0 0 1
1769 опасность ж 1 1 1 0 1 0 0 1
1771 разрешение с 1 1 1 0 1 0 0 1
1772 воздействие с 1 1 1 0 1 0 0 1
1773 коллектив м 1 1 1 0 1 0 0 1
1774 камера ж 1 1 1 0 1 0 0 1
1776 запас м 1 1 1 0 1 0 0 1
1778 следствие с 1 1 1 0 1 0 0 1
1779 длина ж 1 1 1 0 1 0 0 1
1782 крыло с 1 1 0 0 0 0 крылья 0 1
1783 округ м 1 1 1 0 1 1 0 1
1785 фон м 1 1 1 0 1 0 0 1
1786 кандидат м 1 1 1 0 1 0 1 0
1787 родственник м 1 1 1 0 1 0 1 0
1791 давление с 1 0 0 0 0 0 0 1
1794 присутствие с 1 1 1 0 1 0 0 1
1795 взаимодействие с 1 1 1 0 1 0 0 1
1797 доска ж 1 1 1 0 1 0 0 1
1799 партнер м 1 1 1 0 1 0 1 0
1800 двигатель м 1 1 1 0 1 0 0 1
1801 шум м 1 1 1 0 1 0 0 1
1802 достоинство с 1 1 1 0 1 0 0 1
1805 грех м 1 1 1 0 1 0 0 1
1807 нож м 1 1 1 0 1 0 0 1
1808 полет м 1 1 1 0 1 0 0 1
1811 страсть ж 1 1 1 0 1 0 0 1
1816 испытание с 1 1 1 0 1 0 0 1
1819 оплата ж 1 1 1 0 1 0 0 1
1820 разница ж 1 1 1 0 1 0 0 1
1822 водитель м 1 1 1 0 1 0 1 0
1825 пакет м 1 1 1 0 1 0 0 1
1826 снижение с 1 1 1 0 1 0 0 1
1828 формула ж 1 1 1 0 1 0 0 1
1830 живот м 1 1 1 0 1 0 0 1
1831 капитал м 1 1 1 0 1 0 0 1
1837 мост м 1 1 1 0 1 0 0 1
1840 новость ж 1 1 1 0 1 0 0 1
1841 эффект м 1 1 1 0 1 0 0 1
1842 вход м 1 1 1 0 1 0 0 1
1844 губернатор м 1 1 1 0 1 0 1 0
1849 доклад м 1 1 1 0 1 0 0 1
1852 смена ж 1 1 1 0 1 0 0 1
1853 убийство с 1 1 1 0 1 0 0 1
1854 эксперт м 1 1 1 0 1 0 1 0
1861 автобус м 1 1 1 0 1 0 0 1
1862 платье с 1 1 1 0 1 0 0 1
1866 кадр м 1 1 1 0 1 0 1 1
1868 тетя ж 1 1 1 0 1 0 1 0
1871 общение с 1 1 1 0 1 0 0 1
1873 психология ж 1 1 1 0 1 0 0 1
1874 лев м 1 1 0 1 1 0 1 0
1876 порог м 1 1 1 0 1 0 0 1
1877 проверка ж 1 1 1 0 1 0 0 1
1879 процедура ж 1 1 1 0 1 0 0 1
1881 ремонт м 1 1 1 0 1 0 0 1
1884 обращение с 1 1 1 0 1 0 0 1
1885 обучение с 1 1 1 0 1 0 0 1
1887 ожидание с 1 1 1 0 1 0 0 1
1891 памятник м 1 1 1 0 1 0 0 1
1892 корень м 1 1 0 1 1 0 0 1
1893 наблюдение с 1 1 1 0 1 0 0 1
1895 буква ж 1 1 1 0 1 0 0 1
1897 доказательство с 1 1 1 0 1 0 0 1
1900 признание с 1 1 1 0 1 0 0 1
1903 постель ж 1 1 1 0 1 0 0 1
1905 штаб м 1 1 1 0 1 0 0 1
1907 владелец м 1 1 0 1 1 0 1 0
1908 компьютер м 1 1 1 0 1 0 0 1
1911 инженер м 1 1 1 0 1 0 1 0
1917 старуха ж 1 1 1 0 1 0 1 0
1918 лодка ж 1 1 1 0 1 0 0 1
1919 ракета ж 1 1 1 0 1 0 0 1
1921 серия ж 1 1 1 0 1 0 0 1
1923 шутка ж 1 1 1 0 1 0 0 1
1924 вершина ж 1 1 1 0 1 0 0 1
1926 выпуск м 1 1 1 0 1 0 0 1
1927 кулак м 1 1 1 0 1 0 0 1
1928 лед м 1 1 0 1 1 0 0 1
1930 торговля ж 1 0 0 0 0 0 0 1
1934 нефть ж 1 1 1 0 1 0 0 1
1936 молодежь ж 1 0 0 0 0 0 0 1
1937 цифра ж 1 1 1 0 1 0 0 1
1938 корпус м 1 1 1 0 1 1 0 1
1940 недостаток м 1 1 0 1 1 0 0 1
1942 сапог м 1 1 1 0 1 0 0 1
1944 сущность ж 1 1 1 0 1 0 0 1
1945 талант м 1 1 1 0 1 0 0 1
1948 эффективность ж 1 1 1 0 1 0 0 1
1951 кофе м 1 0 0 0 0 0 0 1
1953 полоса ж 1 1 1 0 1 0 0 1
1963 рассмотрение с 1 1 1 0 1 0 0 1
1967 сбор м 1 1 1 0 1 0 0 1
1968 штат м 1 1 1 0 1 0 0 1
1970 следователь м 1 1 1 0 1 0 1 0
1971 жильё с 1 0 0 0 0 0 0 1
1972 мешок м 1 1 0 1 1 0 0 1
1974 описание с 1 1 1 0 1 0 0 1
1976 куст м 1 1 1 0 1 0 0 1
1977 отказ м 1 1 1 0 1 0 0 1
1979 замок м 1 1 1 0 1 0 0 1
1980 пропасть ж 1 1 1 0 1 0 0 1
1982 редактор м 1 1 1 0 1 0 1 0
1984 дворец м 1 1 0 1 1 0 0 1
1985 забота ж 1 1 1 0 1 0 0 1
1987 пиво с 1 0 0 0 0 0 0 1
1990 диван м 1 1 1 0 1 0 0 1
1994 столик м 1 1 1 0 1 0 0 1
1997 эксперимент м 1 1 1 0 1 0 0 1
Binary file not shown.
+321
View File
@@ -0,0 +1,321 @@
Номер Слово Тип Перевод 1 Комментарий 1 Пример 1 Перевод 2 Комментарий 2 Пример 2 Перевод 3 Комментарий 3 Пример 3
1 и OTHER
3 не OTHER
8 с OTHER
9 что OTHER
10 а OTHER
12 это OTHER
14 этот OTHER
19 как OTHER
22 который OTHER
23 то OTHER
26 что OTHER
27 весь OTHER
30 так OTHER
34 же OTHER
35 все ADVERB
36 тот OTHER
40 такой OTHER
43 только OTHER
44 или OTHER
45 ещё OTHER
46 бы OTHER
49 как OTHER
50 уже OTHER
53 если OTHER
55 когда OTHER
57 вот OTHER
64 чтобы OTHER
67 кто OTHER
69 очень OTHER
75 даже OTHER
78 раз OTHER
79 где OTHER
80 там OTHER
82 можно OTHER
83 ну OTHER
84 какой OTHER
85 после OTHER
88 без OTHER
90 потом OTHER
91 надо OTHER
93 ли OTHER
97 должен OTHER
100 ничто OTHER
101 то OTHER
102 сейчас ADVERB
103 тут OTHER
105 каждый OTHER
107 нет OTHER
108 теперь OTHER
109 ни OTHER
111 тоже OTHER
112 тогда OTHER
115 через OTHER
116 да OTHER
117 здесь ADVERB
120 потому OTHER
122 какой-то OTHER
127 чем OTHER
133 более ADVERB
135 что-то OTHER
138 просто ADVERB
139 конечно OTHER
143 перед ADVERB
147 всегда ADVERB
149 между ADVERB
158 также ADVERB
163 лишь ADVERB
165 именно ADVERB
167 хотя OTHER
168 ни OTHER
179 почему OTHER
180 вдруг ADVERB
183 почти ADVERB
186 ведь OTHER
188 однако ADVERB
189 сразу ADVERB
190 хорошо ADVERB
201 это OTHER
202 сегодня ADVERB
204 совсем ADVERB
218 все OTHER
223 поэтому OTHER
225 вообще OTHER
227 больше ADVERB
228 вместе ADVERB
238 никогда ADVERB
243 например OTHER
267 пока OTHER
276 куда OTHER
277 нужно OTHER
284 уж OTHER
286 кроме OTHER
288 опять OTHER
296 снова ADVERB
313 нельзя OTHER
319 среди ADVERB
337 особенно ADVERB
349 рядом ADVERB
351 назад ADVERB
372 совершенно ADVERB
384 сколько OTHER
386 давно ADVERB
389 действительно ADVERB
393 наконец ADVERB
399 всё-таки OTHER
402 даже OTHER
408 часто ADVERB
412 быстро ADVERB
415 как-то ADVERB
417 долго ADVERB
421 иногда ADVERB
425 чуть ADVERB
426 зачем ADVERB
438 затем ADVERB
451 против ADVERB
464 слишком ADVERB
466 вполне ADVERB
467 далее ADVERB
488 может OTHER
489 впрочем OTHER
491 наверное ADVERB
493 ведь OTHER
498 больше ADVERB
508 пока OTHER
510 поскольку OTHER
513 пусть OTHER
518 словно ADVERB
535 достаточно ADVERB
537 хоть OTHER
558 сей OTHER
574 либо OTHER
578 менее ADVERB
584 туда OTHER
591 кстати OTHER
608 сначала ADVERB
618 довольно ADVERB
620 ж OTHER
623 более ADVERB
647 причём OTHER
651 будто OTHER
663 всего OTHER
666 однажды OTHER
669 домой ADVERB
675 чтоб OTHER
679 скоро ADVERB
680 наиболее ADVERB
682 обычно ADVERB
684 разве OTHER
688 далеко ADVERB
698 трудно ADVERB
702 возможно ADVERB
704 точно ADVERB
724 весьма ADVERB
725 какой-нибудь OTHER
731 легко ADVERB
742 вместо OTHER
744 видно ADVERB
755 вокруг ADVERB
761 откуда OTHER
770 немного ADVERB
776 мало ADVERB
781 практически ADVERB
785 необходимо OTHER
793 прежде OTHER
802 сюда OTHER
807 вовсе OTHER
817 рано ADVERB
819 несмотря OTHER
820 сильно ADVERB
821 столь OTHER
827 кажется OTHER
831 известно ADVERB
846 никак ADVERB
865 завтра ADVERB
867 когда ADVERB
878 видимо OTHER
883 мало ADVERB
886 одновременно OTHER
890 тихо ADVERB
891 зато OTHER
898 почему-то OTHER
902 где-то OTHER
905 недавно OTHER
922 вновь OTHER
924 прямо ADVERB
925 ибо OTHER
930 иначе OTHER
936 вперёд ADVERB
938 вчера ADVERB
944 полностью ADVERB
947 плохо ADVERB
957 постоянно ADVERB
963 многое OTHER
971 едва OTHER
983 что OTHER
985 ясно OTHER
995 обязательно ADVERB
1015 прямо ADVERB
1021 вроде OTHER
1044 медленно ADVERB
1078 спокойно ADVERB
1088 возле ADVERB
1093 вскоре ADVERB
1094 лучше ADVERB
1095 сквозь OTHER
1097 ладно OTHER
1109 ради OTHER
1112 только OTHER
1114 когда-то OTHER
1116 то OTHER
1120 невозможно ADVERB
1126 примерно ADVERB
1134 ли OTHER
1140 гораздо ADVERB
1144 уж OTHER
1145 неожиданно ADVERB
1184 наоборот OTHER
1196 естественно ADVERB
1198 вниз ADVERB
1204 давай OTHER
1213 столько ADVERB
1222 мол OTHER
1232 явно ADVERB
1243 пожалуйста OTHER
1266 интересно ADVERB
1290 есть OTHER
1292 правильно ADVERB
1293 благодаря OTHER
1305 пожалуй OTHER
1321 поздно ADVERB
1335 согласно ADVERB
1339 постепенно ADVERB
1340 резко ADVERB
1375 хотя OTHER
1385 понятно ADVERB
1386 настолько ADVERB
1389 абсолютно ADVERB
1391 несколько ADVERB
1392 очевидно ADVERB
1399 лично ADVERB
1401 обратно ADVERB
1412 хоть OTHER
1418 страшно ADVERB
1419 прежде OTHER
1432 слегка ADVERB
1441 собственно ADVERB
1443 еще OTHER
1444 неужели OTHER
1458 отсюда ADVERB
1478 много ADVERB
1491 меньше ADVERB
1494 ах OTHER
1499 просто ADVERB
1511 многие OTHER
1513 вряд OTHER
1526 чей OTHER
1532 кто-нибудь OTHER
1536 случайно ADVERB
1539 высоко ADVERB
1547 по-прежнему ADVERB
1558 вверх ADVERB
1570 насколько ADVERB
1573 странно ADVERB
1577 вероятно ADVERB
1579 вроде ADVERB
1583 молча ADVERB
1587 же OTHER
1588 немедленно ADVERB
1594 спустя ADVERB
1609 оттуда ADVERB
1610 мимо OTHER
1645 должно ADVERB
1649 специально ADVERB
1658 буквально ADVERB
1661 значительно ADVERB
1665 вокруг OTHER
1710 б OTHER
1719 тяжело ADVERB
1729 осторожно ADVERB
1743 впереди ADVERB
1744 навсегда ADVERB
1775 внимательно ADVERB
1789 прекрасно ADVERB
1796 громко ADVERB
1804 вдоль ADVERB
1806 господи OTHER
1810 ранее ADVERB
1821 соответственно ADVERB
1824 куда-то OTHER
1829 важно ADVERB
1839 сверху ADVERB
1846 какой-либо ADVERB
1855 вон ADVERB
1858 редко ADVERB
1864 честно ADVERB
1865 помимо ADVERB
1867 ой OTHER
1875 таков OTHER
1889 широко ADVERB
1901 внутри ADVERB
1909 окончательно ADVERB
1914 заранее ADVERB
1915 итак OTHER
1925 строго ADVERB
1941 наверно ADVERB
1949 похоже ADVERB
1954 серьёзно ADVERB
1957 обо OTHER
1964 давайте OTHER
1975 рад OTHER
1995 насчет OTHER
743 впервые OTHER
1381 во-первых OTHER
1675 во-вторых OTHER
в-третьих OTHER
в-четверых OTHER
в-пятых OTHER
Binary file not shown.
+395
View File
@@ -0,0 +1,395 @@
номер несовершенная форма может быть бесприставочным может быть приставочным ся (сь) Совершенная форма Несовершенная форма Перевод 1 Комментарий 1 Пример 1 Перевод 2 Комментарий 2 Пример 2 Перевод 3 Комментарий 3 Пример 3
6 быть 1 0 0 1 是 "过去时:был(а, о, и); 现在时:无; 将来时态:будет;" "Озеро было чистым; Озеро чистое; Озеро будет чистым" 可能是 那句“может быть” Может быть, я пойду домой
37 мочь 1 0 0 1
42 сказать 1 0 1 0
58 говорить 1 1 0 1
61 знать 1 0 0 1
62 стать 1 0 1 0
92 хотеть 1 1 0 1
95 идти 1 0 0 1
99 иметь 1 1 0 1
113 видеть 1 1 0 1
123 думать 1 1 0 1
124 сделать 1 1 1 0
126 жить 1 1 0 1
134 делать 1 1 0 1
136 смотреть 1 1 0 1
148 работать 1 1 0 1
152 понять 1 1 0 1
153 пойти 1 0 1 0
155 спросить 1 1 1 0
157 дать 1 1 1 0
160 понимать 1 1 0 1
161 получить 1 1 1 0
169 сидеть 1 1 0 1
172 оказать 1 1 1 0
175 взять 1 1 1 0
176 прийти 1 1 1 0
177 являть 1 1 0 1
181 любить 1 1 0 1
182 стоить 1 1 0 1
194 остаться 0 1 1 0
195 выйти 1 1 1 0
198 начать 1 1 1 0
206 считать 1 1 0 1
209 увидеть 1 1 1 0
211 казаться 0 1 0 1
213 писать 1 1 0 1
222 найти 1 1 1 0
224 стоять 1 0 1 0
232 решить 1 1 1 0
242 пройти 1 1 1 0
251 принять 1 1 1 0
262 давать 1 1 0 1
263 ответить 1 1 1 0
269 помнить 1 1 0 1
271 ждать 1 1 0 1
287 находить 1 1 1 0
294 написать 1 1 1 0
304 оставаться 0 1 0 1
310 играть 1 1 0 1
312 лежать 1 1 0 1
316 подумать 1 1 1 0
317 уйти 1 1 1 0
321 посмотреть 1 1 1 0
325 вернуть 1 1 1 0
331 следовать 1 1 1 0
332 читать 1 1 0 1
341 бывать 1 1 0 1
342 ходить 1 1 0 1
344 начинать 1 1 0 1
345 появиться 0 1 1 0
348 называть 1 1 0 1
371 вести 1 1 0 1
375 показать 1 1 1 0
391 поставить 1 1 1 0
392 бояться 0 1 0 1
395 происходить 1 1 0 1
401 существовать 1 0 0 1
404 становиться 0 1 0 1
411 слышать 1 1 0 1
413 смочь 1 0 1 0
414 заметить 1 0 1 0
422 использовать 1 0 0 1
423 пытать 1 1 0 1
427 представить 1 1 1 0
428 чувствовать 1 0 0 1
429 создать 1 1 1 0
440 занимать 1 1 0 1
441 продолжать 1 1 0 1
445 слушать 1 1 0 1
447 узнать 1 1 1 0
456 приехать 1 0 1 0
459 отвечать 1 1 0 1
465 рассказывать 1 0 0 1
468 рассказать 1 0 1 0
470 представлять 1 1 0 1
477 брать 1 1 0 1
478 забыть 1 1 1 0
485 провести 1 1 1 0
486 спать 1 0 0 1
497 помочь 1 0 1 0
499 приходить 1 1 0 1
503 просить 1 1 0 1
504 вспомнить 1 1 1 0
505 открыть 1 1 1 0
506 привести 1 1 1 0
515 оставить 1 0 1 0
520 спрашивать 1 1 0 1
521 принимать 1 1 0 1
523 искать 1 0 0 1
531 войти 1 0 1 0
534 назвать 1 1 1 0
540 успеть 1 1 1 0
541 произойти 1 1 1 0
547 выходить 1 0 0 1
549 предложить 1 1 1 0
551 пить 1 0 0 1
554 глядеть 1 1 0 1
560 ехать 1 0 0 1
565 попасть 1 1 1 0
568 верить 1 0 0 1
573 держать 1 1 0 1
575 позволять 1 0 0 1
580 купить 1 1 1 0
581 уходить 1 0 0 1
582 собирать 1 1 0 1
585 относить 1 1 0 1
587 требовать 1 0 0 1
592 подойти 1 1 1 0
594 удаться 0 1 1 0
596 получать 1 1 0 1
622 умереть 1 0 1 0
636 сесть 1 0 1 0
638 случиться 0 1 1 0
642 проходить 1 0 0 1
643 составлять 1 1 0 1
649 установить 1 1 1 0
652 поднять 1 1 1 0
656 стараться 0 1 0 1
657 уметь 1 0 0 1
658 встать 1 0 1 0
678 проводить 1 1 0 1
683 бросить 1 1 1 0
705 объяснить 1 1 1 0
708 снять 1 1 1 0
711 нравиться 0 1 0 1
712 услышать 1 0 1 0
714 связать 1 1 1 0
718 позволить 1 0 1 0
728 поехать 1 0 1 0
729 положить 1 1 1 0
730 входить 1 1 0 1
746 оказывать 1 1 0 1
748 показывать 1 1 0 1
750 вызвать 1 1 1 0
751 касать 1 1 0 1
757 отметить 1 1 1 0
758 заявить 1 1 1 0
764 действовать 1 0 0 1
792 кричать 1 1 0 1
797 остановить 1 1 1 0
805 предлагать 1 1 0 1
811 убить 1 1 1 0
813 молчать 1 0 0 1
814 согласиться 0 1 1 0
822 сообщить 1 1 1 0
824 бежать 1 0 0 1
828 петь 1 0 0 1
833 вызывать 1 1 0 1
841 принести 1 0 1 0
844 выглядеть 1 0 0 1
850 служить 1 0 0 1
852 попросить 1 1 1 0
854 состоять 1 1 0 1
856 отдать 1 1 1 0
861 выступать 1 0 0 1
864 ставить 1 1 0 1
866 возникать 1 1 0 1
876 надеяться 0 1 0 1
882 вспоминать 1 1 0 1
894 помогать 1 0 0 1
899 значить 1 1 0 1
900 возникнуть 1 0 1 0
912 звать 1 1 0 1
915 позвонить 1 0 1 0
917 хватать 1 1 0 1
926 выпить 1 0 1 0
931 потерять 1 1 1 0
946 учить 1 1 0 1
951 возвращать 1 1 0 1
952 расти 1 1 0 1
955 обнаружить 1 1 1 0
961 почувствовать 1 0 1 0
968 передать 1 1 1 0
972 желать 1 0 0 1
973 ожидать 1 1 0 1
980 составить 1 1 1 0
988 нести 1 1 0 1
989 определить 1 1 1 0
999 пользоваться 0 1 0 1
1007 улыбнуться 0 1 1 0
1011 появляться 0 1 0 1
1016 смеяться 0 1 0 1
1019 уехать 1 0 1 0
1026 подходить 1 1 0 1
1027 судить 1 1 0 1
1028 родить 1 1 1 0
1034 отказать 1 1 1 0
1038 занять 1 1 1 0
1041 добавить 1 1 1 0
1043 звонить 1 0 0 1
1045 носить 1 1 0 1
1048 зависеть 1 0 0 1
1051 построить 1 1 1 0
1057 создавать 1 1 0 1
1062 встретить 1 1 1 0
1063 принадлежать 1 1 0 1
1064 произнести 1 1 1 0
1069 участвовать 1 0 0 1
1086 улыбаться 0 0 0 1
1101 направить 1 1 1 0
1118 обратить 1 1 1 0
1125 выбрать 1 1 1 0
1127 бить 1 1 0 1
1132 хватить 1 1 0 1
1133 обещать 1 0 0 1
1135 встречать 1 1 0 1
1143 напоминать 1 1 0 1
1148 упасть 1 0 1 0
1149 перестать 1 0 1 0
1154 обладать 1 0 0 1
1165 плакать 1 0 0 1
1187 поверить 1 0 1 0
1189 собрать 1 1 1 0
1194 простить 1 1 1 0
1201 рассматривать 1 1 0 1
1202 перейти 1 0 1 0
1203 мешать 1 1 0 1
1209 исчезнуть 1 0 1 0
1212 разумеет 1 1 0 1
1223 объявить 1 1 1 0
1224 отличать 1 1 0 1
1227 обращать 1 1 0 1
1231 снимать 1 1 0 1
1235 пригласить 1 0 1 0
1236 соответствовать 1 0 0 1
1241 закрыть 1 1 1 0
1242 придумать 1 0 1 0
1244 попробовать 1 0 1 0
1245 приводить 1 1 0 1
1250 достигнуть 1 0 1 0
1252 утверждать 1 1 0 1
1258 означать 1 0 0 1
1259 платить 1 1 0 1
1265 решать 1 1 0 1
1277 определять 1 1 0 1
1279 наблюдать 1 1 0 1
1282 погибнуть 1 0 1 0
1283 разговаривать 1 0 0 1
1289 устроить 1 1 1 0
1290 есть 1 1 0 1
1296 достать 1 1 1 0
1309 ездить 1 0 0 1
1316 понравиться 0 1 1 0
1325 выполнять 1 1 0 1
1330 заставить 1 0 1 0
1331 объяснять 1 1 0 1
1337 выполнить 1 1 1 0
1342 указать 1 0 1 0
1363 вздохнуть 1 0 1 0
1367 закончить 1 1 1 0
1370 признать 1 1 1 0
1379 дойти 1 0 1 0
1383 кивнуть 1 0 1 0
1394 узнавать 1 1 0 1
1402 предусмотреть 1 0 1 0
1409 обеспечивать 1 1 0 1
1413 двигать 1 1 0 1
1417 содержать 1 1 0 1
1426 приезжать 1 0 0 1
1431 обеспечить 1 1 1 0
1435 поступить 1 1 1 0
1437 привыкнуть 1 0 1 0
1440 открывать 1 1 0 1
1448 вырасти 1 0 1 0
1450 зайти 1 0 1 0
1453 посвятить 1 1 1 0
1454 стремиться 0 1 0 1
1466 изменить 1 1 1 0
1472 удивить 1 1 1 0
1473 падать 1 0 0 1
1475 звучать 1 0 0 1
1481 суметь 1 0 1 0
1486 разработать 1 1 1 0
1489 поговорить 1 0 1 0
1495 лететь 1 0 0 1
1496 совершить 1 1 1 0
1504 строить 1 1 0 1
1508 кончить 1 1 1 0
1510 привезти 1 0 1 0
1514 сложить 1 1 1 0
1515 оставлять 1 1 0 1
1516 полагать 1 1 0 1
1517 висеть 1 0 0 1
1531 повторить 1 1 1 0
1533 сыграть 1 1 1 0
1541 спасти 1 1 1 0
1545 повторять 1 1 0 1
1548 явить 1 1 1 0
1553 замечать 1 0 0 1
1555 подать 1 1 1 0
1560 назначить 1 1 1 0
1561 протянуть 1 1 1 0
1564 сохранить 1 1 1 0
1566 попытать 1 1 1 0
1567 расположить 1 1 1 0
1581 отправить 1 1 1 0
1586 садить 1 1 0 1
1593 крикнуть 1 0 1 0
1600 готовить 1 1 0 1
1603 гореть 1 0 0 1
1604 испытывать 1 1 0 1
1607 выделить 1 1 0 1
1611 поддерживать 1 1 0 1
1612 поднимать 1 1 0 1
1614 следить 1 1 0 1
1623 включать 1 1 0 1
1633 менять 1 1 0 1
1640 покупать 1 1 0 1
1646 предполагать 1 1 0 1
1648 терять 1 1 0 1
1657 послать 1 1 1 0
1660 допустить 1 1 1 0
1667 прочитать 1 1 1 0
1669 присутствовать 1 0 0 1
1671 взглянуть 1 0 1 0
1673 мечтать 1 1 0 1
1674 подписать 1 1 1 0
1678 осуществлять 1 1 0 1
1680 поступать 1 1 0 1
1713 захотеть 1 1 1 0
1716 бороть 1 1 0 1
1717 отдавать 1 1 0 1
1723 приобрести 1 1 1 0
1724 включить 1 1 1 0
1732 подтвердить 1 1 1 0
1735 спешить 1 1 0 1
1737 добить 1 1 1 0
1746 повернуть 1 1 1 0
1751 вставать 1 0 0 1
1752 подготовить 1 1 1 0
1753 исходить 1 1 0 1
1758 свидетельствовать 1 1 0 1
1759 ввести 1 1 1 0
1762 прочесть 1 1 1 0
1765 болеть 1 0 0 1
1767 тянуть 1 1 0 1
1770 продать 1 1 1 0
1784 произвести 1 1 1 0
1790 выступить 1 1 1 0
1792 пахнуть 1 0 0 1
1793 познакомить 1 1 1 0
1798 наступить 1 1 1 0
1803 предстоять 1 0 0 1
1809 производить 1 1 0 1
1812 перевести 1 1 1 0
1813 разрешить 1 1 1 0
1817 проверить 1 1 1 0
1827 выдержать 1 1 1 0
1832 учитывать 1 1 0 1
1833 курить 1 0 0 1
1835 забывать 1 1 0 1
1836 заключать 1 1 0 1
1843 выбирать 1 1 0 1
1847 напомнить 1 0 1 0
1850 закричать 1 0 1 0
1851 организовать 1 1 1 0
1856 доказать 1 1 1 0
1860 приносить 1 1 0 1
1870 дышать 1 0 0 1
1872 описать 1 1 1 0
1878 прожить 1 0 1 0
1888 оценить 1 1 1 0
1890 рассмотреть 1 1 1 0
1898 лечь 1 0 1 0
1899 превратить 1 1 1 0
1902 выпустить 1 1 1 0
1906 ударить 1 1 1 0
1913 проснуться 0 1 1 0
1929 способствовать 1 0 0 1
1939 научить 1 1 1 0
1946 умирать 1 0 0 1
1950 стрелять 1 1 0 1
1952 обойти 1 1 1 0
1955 записать 1 1 1 0
1962 подарить 1 0 1 0
1973 заставлять 1 1 0 1
1978 схватить 1 1 1 0
1980 пропасть 1 0 1 0
1986 выдать 1 1 1 0
1991 извинить 1 1 1 0
1992 разобрать 1 1 0 1
1996 опустить 1 1 1 0
1998 страдать 1 0 0 1
1999 заходить 1 1 0 1
Binary file not shown.
File diff suppressed because it is too large. Load diff
Binary file not shown.
+217
View File
@@ -0,0 +1,217 @@
Склонение Род Падеж Окончание Пример
FIRST_A_IFORM_INANIMATE NC_SINGULAR NGC_P1_NOMINATIVE а рука
NGC_P2_GENITIVE и подарок для руки
NGC_P3_DATIVE е подарок руке
NGC_P4_ACCUSATIVE у обвиняю руку
NGC_P5_INSTRUMENTAL ой говорю с рукой
NGC_P6_PREPOSITIONAL е говорю о руке
NC_PLURAL NGC_P1_NOMINATIVE и руки
NGC_P2_GENITIVE подарок для рук
NGC_P3_DATIVE ам подарок рукам
NGC_P4_ACCUSATIVE и обвиняю руки
NGC_P5_INSTRUMENTAL ами говорю с руками
NGC_P6_PREPOSITIONAL ах говорю о руках
FIRST_A_IFORM_ANIMATE NC_SINGULAR NGC_P1_NOMINATIVE а бабушка
NGC_P2_GENITIVE и подарок для бабушки
NGC_P3_DATIVE е подарок бабушке
NGC_P4_ACCUSATIVE у обвиняю бабушку
NGC_P5_INSTRUMENTAL ой говорю с бабушкой
NGC_P6_PREPOSITIONAL е говорю о бабушке
NC_PLURAL NGC_P1_NOMINATIVE и бабушки
NGC_P2_GENITIVE подарок для бабушек
NGC_P3_DATIVE е подарок бабушкам
NGC_P4_ACCUSATIVE обвиняю бабушек
NGC_P5_INSTRUMENTAL ами говорю с бабушками
NGC_P6_PREPOSITIONAL ах говорю о бабушках
FIRST_A_UFORM_INANIMATE NC_SINGULAR NGC_P1_NOMINATIVE а лапа
NGC_P2_GENITIVE ы подарок для лапы
NGC_P3_DATIVE е подарок лапе
NGC_P4_ACCUSATIVE у обвиняю лапу
NGC_P5_INSTRUMENTAL ой говорю с лапой
NGC_P6_PREPOSITIONAL е говорю о лапе
NC_PLURAL NGC_P1_NOMINATIVE ы лапы
NGC_P2_GENITIVE подарок для лап
NGC_P3_DATIVE ам подарок лапам
NGC_P4_ACCUSATIVE ы обвиняю лапы
NGC_P5_INSTRUMENTAL ами говорю с лапами
NGC_P6_PREPOSITIONAL ах говорю о лапах
FIRST_A_UFORM_ANIMATE NC_SINGULAR NGC_P1_NOMINATIVE а папа
NGC_P2_GENITIVE ы подарок для папы
NGC_P3_DATIVE е подарок папе
NGC_P4_ACCUSATIVE у обвиняю папу
NGC_P5_INSTRUMENTAL ой говорю с папой
NGC_P6_PREPOSITIONAL е говорю о папе
NC_PLURAL NGC_P1_NOMINATIVE ы папы
NGC_P2_GENITIVE подарок для пап
NGC_P3_DATIVE ам подарок папам
NGC_P4_ACCUSATIVE обвиняю пап
NGC_P5_INSTRUMENTAL ами говорю с папами
NGC_P6_PREPOSITIONAL ах говорю о папах
FIRST_YA_FORM_INANIMATE NC_SINGULAR NGC_P1_NOMINATIVE я пуля
NGC_P2_GENITIVE и подарок для пули
NGC_P3_DATIVE е подарок пуле
NGC_P4_ACCUSATIVE ю обвиняю пулю
NGC_P5_INSTRUMENTAL ей говорю с пулей
NGC_P6_PREPOSITIONAL е говорю о пуле
NC_PLURAL NGC_P1_NOMINATIVE и пули
NGC_P2_GENITIVE ь подарок для пуль
NGC_P3_DATIVE ям подарок пулям
NGC_P4_ACCUSATIVE и обвиняю пули
NGC_P5_INSTRUMENTAL ями говорю с пулями
NGC_P6_PREPOSITIONAL ях говорю о пулях
FIRST_YA_FORM_ANIMATE NC_SINGULAR NGC_P1_NOMINATIVE я тетя
NGC_P2_GENITIVE и подарок для тети
NGC_P3_DATIVE е подарок тете
NGC_P4_ACCUSATIVE ю обвиняю тетю
NGC_P5_INSTRUMENTAL ей говорю с тетей
NGC_P6_PREPOSITIONAL е говорю о тете
NC_PLURAL NGC_P1_NOMINATIVE и тети
NGC_P2_GENITIVE ь подарок для теть
NGC_P3_DATIVE ям подарок тетям
NGC_P4_ACCUSATIVE ь обвиняю теть
NGC_P5_INSTRUMENTAL ями говорю с тетями
NGC_P6_PREPOSITIONAL ях говорю о тетях
SECOND_MALE_IFORM_INANIMATE NC_SINGULAR NGC_P1_NOMINATIVE бук
NGC_P2_GENITIVE а подарок для бука
NGC_P3_DATIVE у подарок буку
NGC_P4_ACCUSATIVE обвиняю бук
NGC_P5_INSTRUMENTAL ом говорю с буком
NGC_P6_PREPOSITIONAL е говорю о буке
NC_PLURAL NGC_P1_NOMINATIVE и, я буки
NGC_P2_GENITIVE ов подарок для буков
NGC_P3_DATIVE ам подарок букам
NGC_P4_ACCUSATIVE и, я обвиняю буки
NGC_P5_INSTRUMENTAL ами говорю с буками
NGC_P6_PREPOSITIONAL ах говорю о буках
SECOND_MALE_IFORM_ANIMATE NC_SINGULAR NGC_P1_NOMINATIVE рыбак
NGC_P2_GENITIVE а подарок для рыбака
NGC_P3_DATIVE у подарок рыбаку
NGC_P4_ACCUSATIVE а обвиняю рыбака
NGC_P5_INSTRUMENTAL ом говорю с рыбаком
NGC_P6_PREPOSITIONAL е говорю о рыбаке
NC_PLURAL NGC_P1_NOMINATIVE и, я рыбаки
NGC_P2_GENITIVE ов подарок для рыбаков
NGC_P3_DATIVE ам подарок рыбакам
NGC_P4_ACCUSATIVE ов обвиняю рыбаков
NGC_P5_INSTRUMENTAL ами говорю с рыбаками
NGC_P6_PREPOSITIONAL ах говорю о рыбаках
SECOND_MALE_UFORM_INANIMATE NC_SINGULAR NGC_P1_NOMINATIVE зад
NGC_P2_GENITIVE а подарок для зада
NGC_P3_DATIVE у подарок заду
NGC_P4_ACCUSATIVE обвиняю зад
NGC_P5_INSTRUMENTAL ом говорю с задом
NGC_P6_PREPOSITIONAL е говорю о заде
NC_PLURAL NGC_P1_NOMINATIVE ы, а зады
NGC_P2_GENITIVE ов подарок для задов
NGC_P3_DATIVE ам подарок задам
NGC_P4_ACCUSATIVE ы, а обвиняю зады
NGC_P5_INSTRUMENTAL ами говорю с задами
NGC_P6_PREPOSITIONAL ах говорю о задах
SECOND_MALE_UFORM_ANIMATE NC_SINGULAR NGC_P1_NOMINATIVE кит
NGC_P2_GENITIVE а подарок для кита
NGC_P3_DATIVE у подарок киту
NGC_P4_ACCUSATIVE а обвиняю кита
NGC_P5_INSTRUMENTAL ом говорю с китом
NGC_P6_PREPOSITIONAL е говорю о ките
NC_PLURAL NGC_P1_NOMINATIVE ы, а киты
NGC_P2_GENITIVE ов подарок для китов
NGC_P3_DATIVE ам подарок китам
NGC_P4_ACCUSATIVE ов обвиняю китов
NGC_P5_INSTRUMENTAL ами говорю с китами
NGC_P6_PREPOSITIONAL ах говорю о китах
SECOND_MALE_SSFORM_INANIMATE NC_SINGULAR NGC_P1_NOMINATIVE ь тополь
NGC_P2_GENITIVE я подарок для тополя
NGC_P3_DATIVE ю подарок тополю
NGC_P4_ACCUSATIVE ь обвиняю тополь
NGC_P5_INSTRUMENTAL ем говорю с тополем
NGC_P6_PREPOSITIONAL е говорю о тополе
NC_PLURAL NGC_P1_NOMINATIVE и, я тополи
NGC_P2_GENITIVE ей подарок для тополей
NGC_P3_DATIVE ям подарок тополям
NGC_P4_ACCUSATIVE и, я обвиняю тополи
NGC_P5_INSTRUMENTAL ями говорю с тополями
NGC_P6_PREPOSITIONAL ях говорю о тополях
SECOND_MALE_SSFORM_ANIMATE NC_SINGULAR NGC_P1_NOMINATIVE ь парень
NGC_P2_GENITIVE я подарок для парня
NGC_P3_DATIVE ю подарок парню
NGC_P4_ACCUSATIVE я обвиняю парня
NGC_P5_INSTRUMENTAL ем говорю с парнем
NGC_P6_PREPOSITIONAL е говорю о парне
NC_PLURAL NGC_P1_NOMINATIVE и, я парни
NGC_P2_GENITIVE ей подарок для парней
NGC_P3_DATIVE ям подарок парням
NGC_P4_ACCUSATIVE ей обвиняю парней
NGC_P5_INSTRUMENTAL ями говорю с парнями
NGC_P6_PREPOSITIONAL ях говорю о парнях
SECOND_I_SHORT_INANIMATE NC_SINGULAR NGC_P1_NOMINATIVE й каравай
NGC_P2_GENITIVE я подарок для каравая
NGC_P3_DATIVE ю подарок караваю
NGC_P4_ACCUSATIVE й обвиняю каравай
NGC_P5_INSTRUMENTAL ем говорю с караваем
NGC_P6_PREPOSITIONAL е говорю о каравае
NC_PLURAL NGC_P1_NOMINATIVE и, я караваи
NGC_P2_GENITIVE ев подарок для караваев
NGC_P3_DATIVE ям подарок караваям
NGC_P4_ACCUSATIVE и, я обвиняю караваи
NGC_P5_INSTRUMENTAL ями говорю с караваями
NGC_P6_PREPOSITIONAL ях говорю о караваях
SECOND_I_SHORT_ANIMATE NC_SINGULAR NGC_P1_NOMINATIVE й герой
NGC_P2_GENITIVE я подарок для героя
NGC_P3_DATIVE ю подарок герою
NGC_P4_ACCUSATIVE я обвиняю героя
NGC_P5_INSTRUMENTAL ем говорю с героем
NGC_P6_PREPOSITIONAL е говорю о каравае
NC_PLURAL NGC_P1_NOMINATIVE и, я герои
NGC_P2_GENITIVE ев подарок для героев
NGC_P3_DATIVE ям подарок героям
NGC_P4_ACCUSATIVE ев обвиняю героев
NGC_P5_INSTRUMENTAL ями говорю с героями
NGC_P6_PREPOSITIONAL ях говорю о героях
SECOND_NEUTRAL_E_FORM NC_SINGULAR NGC_P1_NOMINATIVE е поле
NGC_P2_GENITIVE я подарок для поля
NGC_P3_DATIVE ю подарок полю
NGC_P4_ACCUSATIVE е обвиняю поле
NGC_P5_INSTRUMENTAL ем говорю с полем
NGC_P6_PREPOSITIONAL е говорю о поле
NC_PLURAL NGC_P1_NOMINATIVE я поля
NGC_P2_GENITIVE ей подарок для полей
NGC_P3_DATIVE ям подарок полям
NGC_P4_ACCUSATIVE я обвиняю поля
NGC_P5_INSTRUMENTAL ями говорю с полями
NGC_P6_PREPOSITIONAL ях говорю о полях
SECOND_NEUTRAL_O_FORM NC_SINGULAR NGC_P1_NOMINATIVE о тело
NGC_P2_GENITIVE а подарок для тела
NGC_P3_DATIVE у подарок телу
NGC_P4_ACCUSATIVE о обвиняю тело
NGC_P5_INSTRUMENTAL ом говорю с телом
NGC_P6_PREPOSITIONAL е говорю о теле
NC_PLURAL NGC_P1_NOMINATIVE а тела
NGC_P2_GENITIVE подарок для тел
NGC_P3_DATIVE ам подарок телам
NGC_P4_ACCUSATIVE а обвиняю тела
NGC_P5_INSTRUMENTAL ами говорю с телами
NGC_P6_PREPOSITIONAL ах говорю о телах
THIRD_FORM_INANIMATE NC_SINGULAR NGC_P1_NOMINATIVE ь площадь
NGC_P2_GENITIVE и подарок для площади
NGC_P3_DATIVE и подарок площади
NGC_P4_ACCUSATIVE ь обвиняю площадь
NGC_P5_INSTRUMENTAL ью говорю с площадью
NGC_P6_PREPOSITIONAL и говорю о площади
NC_PLURAL NGC_P1_NOMINATIVE и площади
NGC_P2_GENITIVE ей подарок для площадей
NGC_P3_DATIVE ям подарок площадям
NGC_P4_ACCUSATIVE и обвиняю площади
NGC_P5_INSTRUMENTAL ями говорю с площадями
NGC_P6_PREPOSITIONAL ях говорю о площадях
THIRD_FORM_ANIMATE NC_SINGULAR NGC_P1_NOMINATIVE ь лошадь
NGC_P2_GENITIVE и подарок для лошади
NGC_P3_DATIVE и подарок лошади
NGC_P4_ACCUSATIVE ь обвиняю лошадь
NGC_P5_INSTRUMENTAL ью говорю с лошадью
NGC_P6_PREPOSITIONAL и говорю о лошади
NC_PLURAL NGC_P1_NOMINATIVE и лошади
NGC_P2_GENITIVE ей подарок для лошадей
NGC_P3_DATIVE ям подарок лошадям
NGC_P4_ACCUSATIVE ей обвиняю лошадей
NGC_P5_INSTRUMENTAL ями говорю с лошадями
NGC_P6_PREPOSITIONAL ях говорю о лошадях
Binary file not shown.
@@ -0,0 +1,241 @@
Склонение Род Падеж Окончание Пример
IFORM_MALE_INANIMATE NC_SINGULAR NGC_P1_NOMINATIVE ий, ой рабочий
NGC_P2_GENITIVE его подарок для рабочего
NGC_P3_DATIVE ему подарок рабочему
NGC_P4_ACCUSATIVE ий, ой обвиняю рабочий
NGC_P5_INSTRUMENTAL им говорю с рабочим
NGC_P6_PREPOSITIONAL ем говорю о рабочем
NC_PLURAL NGC_P1_NOMINATIVE ие рабочие
NGC_P2_GENITIVE их подарок для рабочих
NGC_P3_DATIVE им подарок рабочим
NGC_P4_ACCUSATIVE ие обвиняю рабочие
NGC_P5_INSTRUMENTAL ими говорю с рабочими
NGC_P6_PREPOSITIONAL их говорю о рабочих
IFORM_MALE_ANIMATE NC_SINGULAR NGC_P1_NOMINATIVE ий, ой рабочий
NGC_P2_GENITIVE его подарок для рабочего
NGC_P3_DATIVE ему подарок рабочему
NGC_P4_ACCUSATIVE его обвиняю рабочего
NGC_P5_INSTRUMENTAL им говорю с рабочим
NGC_P6_PREPOSITIONAL ем говорю о рабочем
NC_PLURAL NGC_P1_NOMINATIVE ие рабочие
NGC_P2_GENITIVE их подарок для рабочих
NGC_P3_DATIVE им подарок рабочим
NGC_P4_ACCUSATIVE их обвиняю рабочих
NGC_P5_INSTRUMENTAL ими говорю с рабочими
NGC_P6_PREPOSITIONAL их говорю о рабочих
UFORM_MALE_INANIMATE NC_SINGULAR NGC_P1_NOMINATIVE ый меловый
NGC_P2_GENITIVE ого подарок для мелового
NGC_P3_DATIVE ому подарок меловому
NGC_P4_ACCUSATIVE ый обвиняю меловый
NGC_P5_INSTRUMENTAL ым говорю с меловым
NGC_P6_PREPOSITIONAL ом говорю о меловом
NC_PLURAL NGC_P1_NOMINATIVE ые меловые
NGC_P2_GENITIVE ых подарок для меловых
NGC_P3_DATIVE ым подарок меловым
NGC_P4_ACCUSATIVE ые обвиняю меловые
NGC_P5_INSTRUMENTAL ыми говорю с меловыми
NGC_P6_PREPOSITIONAL ых говорю о меловых
UFORM_MALE_ANIMATE NC_SINGULAR NGC_P1_NOMINATIVE ый меловой
NGC_P2_GENITIVE ого подарок для мелового
NGC_P3_DATIVE ому подарок меловому
NGC_P4_ACCUSATIVE ого обвиняю мелового
NGC_P5_INSTRUMENTAL ым говорю с меловым
NGC_P6_PREPOSITIONAL ом говорю о меловом
NC_PLURAL NGC_P1_NOMINATIVE ые меловые
NGC_P2_GENITIVE ых подарок для меловых
NGC_P3_DATIVE ым подарок меловым
NGC_P4_ACCUSATIVE ые обвиняю меловые
NGC_P5_INSTRUMENTAL ыми говорю с меловыми
NGC_P6_PREPOSITIONAL ых говорю о меловых
UOFORM_MALE_INANIMATE NC_SINGULAR NGC_P1_NOMINATIVE ой деловой
NGC_P2_GENITIVE ого подарок для делового
NGC_P3_DATIVE ому подарок деловому
NGC_P4_ACCUSATIVE ой обвиняю деловой
NGC_P5_INSTRUMENTAL ым говорю с деловым
NGC_P6_PREPOSITIONAL ом говорю о деловом
NC_PLURAL NGC_P1_NOMINATIVE ые деловые
NGC_P2_GENITIVE ых подарок для деловых
NGC_P3_DATIVE ым подарок деловым
NGC_P4_ACCUSATIVE ые обвиняю деловые
NGC_P5_INSTRUMENTAL ыми говорю с деловыми
NGC_P6_PREPOSITIONAL ых говорю о деловых
UOFORM_MALE_ANIMATE NC_SINGULAR NGC_P1_NOMINATIVE ой деловой
NGC_P2_GENITIVE ого подарок для делового
NGC_P3_DATIVE ому подарок деловому
NGC_P4_ACCUSATIVE ого обвиняю делового
NGC_P5_INSTRUMENTAL ым говорю с деловым
NGC_P6_PREPOSITIONAL ом говорю о деловом
NC_PLURAL NGC_P1_NOMINATIVE ые деловые
NGC_P2_GENITIVE ых подарок для деловых
NGC_P3_DATIVE ым подарок деловым
NGC_P4_ACCUSATIVE ые обвиняю деловые
NGC_P5_INSTRUMENTAL ыми говорю с деловыми
NGC_P6_PREPOSITIONAL ых говорю о деловых
IOFORM_MALE_INANIMATE NC_SINGULAR NGC_P1_NOMINATIVE ой другой
NGC_P2_GENITIVE ого подарок для другого
NGC_P3_DATIVE ому подарок другому
NGC_P4_ACCUSATIVE ой обвиняю другой
NGC_P5_INSTRUMENTAL им говорю с другим
NGC_P6_PREPOSITIONAL ом говорю о другом
NC_PLURAL NGC_P1_NOMINATIVE ие другие
NGC_P2_GENITIVE их подарок для других
NGC_P3_DATIVE им подарок другим
NGC_P4_ACCUSATIVE ие обвиняю другие
NGC_P5_INSTRUMENTAL ихи говорю с другими
NGC_P6_PREPOSITIONAL их говорю о других
IOFORM_MALE_ANIMATE NC_SINGULAR NGC_P1_NOMINATIVE ой другой
NGC_P2_GENITIVE ого подарок для другого
NGC_P3_DATIVE ому подарок другому
NGC_P4_ACCUSATIVE ого обвиняю другого
NGC_P5_INSTRUMENTAL им говорю с другим
NGC_P6_PREPOSITIONAL ом говорю о другом
NC_PLURAL NGC_P1_NOMINATIVE ие другие
NGC_P2_GENITIVE их подарок для других
NGC_P3_DATIVE им подарок другим
NGC_P4_ACCUSATIVE их обвиняю других
NGC_P5_INSTRUMENTAL ихи говорю с другими
NGC_P6_PREPOSITIONAL их говорю о других
IFORM_FEMALE_INANIMATE NC_SINGULAR NGC_P1_NOMINATIVE ая рабочая
NGC_P2_GENITIVE ей подарок для рабочей
NGC_P3_DATIVE ей подарок рабочей
NGC_P4_ACCUSATIVE ую обвиняю рабочую
NGC_P5_INSTRUMENTAL ей говорю с рабочей
NGC_P6_PREPOSITIONAL ей говорю о рабочей
NC_PLURAL NGC_P1_NOMINATIVE ие рабочие
NGC_P2_GENITIVE их подарок для рабочих
NGC_P3_DATIVE им подарок рабочим
NGC_P4_ACCUSATIVE ие обвиняю рабочие
NGC_P5_INSTRUMENTAL ими говорю с рабочими
NGC_P6_PREPOSITIONAL их говорю о рабочих
IFORM_FEMALE_ANIMATE NC_SINGULAR NGC_P1_NOMINATIVE ая рабочая
NGC_P2_GENITIVE ей подарок для рабочей
NGC_P3_DATIVE ей подарок рабочей
NGC_P4_ACCUSATIVE ую обвиняю рабочую
NGC_P5_INSTRUMENTAL ей говорю с рабочей
NGC_P6_PREPOSITIONAL ей говорю о рабочей
NC_PLURAL NGC_P1_NOMINATIVE ие рабочие
NGC_P2_GENITIVE их подарок для рабочих
NGC_P3_DATIVE им подарок рабочим
NGC_P4_ACCUSATIVE их обвиняю рабочих
NGC_P5_INSTRUMENTAL ими говорю с рабочими
NGC_P6_PREPOSITIONAL их говорю о рабочих
UFORM_FEMALE_INANIMATE NC_SINGULAR NGC_P1_NOMINATIVE ая меловая
NGC_P2_GENITIVE ой подарок для меловой
NGC_P3_DATIVE ой подарок меловой
NGC_P4_ACCUSATIVE ую обвиняю меловую
NGC_P5_INSTRUMENTAL ой говорю с меловой
NGC_P6_PREPOSITIONAL ой говорю о меловой
NC_PLURAL NGC_P1_NOMINATIVE ые меловые
NGC_P2_GENITIVE ых подарок для меловых
NGC_P3_DATIVE ым подарок меловым
NGC_P4_ACCUSATIVE ые обвиняю меловые
NGC_P5_INSTRUMENTAL ыми говорю с меловыми
NGC_P6_PREPOSITIONAL ых говорю о меловых
UFORM_FEMALE_ANIMATE NC_SINGULAR NGC_P1_NOMINATIVE ая меловая
NGC_P2_GENITIVE ой подарок для меловой
NGC_P3_DATIVE ой подарок меловой
NGC_P4_ACCUSATIVE ую обвиняю меловую
NGC_P5_INSTRUMENTAL ой говорю с меловой
NGC_P6_PREPOSITIONAL ой говорю о меловой
NC_PLURAL NGC_P1_NOMINATIVE ые меловые
NGC_P2_GENITIVE ых подарок для меловых
NGC_P3_DATIVE ым подарок меловым
NGC_P4_ACCUSATIVE ых обвиняю меловых
NGC_P5_INSTRUMENTAL ыми говорю с меловыми
NGC_P6_PREPOSITIONAL ых говорю о меловых
UOFORM_FEMALE_INANIMATE NC_SINGULAR NGC_P1_NOMINATIVE ая деловая
NGC_P2_GENITIVE ой подарок для деловой
NGC_P3_DATIVE ой подарок деловой
NGC_P4_ACCUSATIVE ую обвиняю деловую
NGC_P5_INSTRUMENTAL ой говорю с деловой
NGC_P6_PREPOSITIONAL ой говорю о деловой
NC_PLURAL NGC_P1_NOMINATIVE ые деловые
NGC_P2_GENITIVE ых подарок для деловых
NGC_P3_DATIVE ым подарок деловым
NGC_P4_ACCUSATIVE ые обвиняю деловые
NGC_P5_INSTRUMENTAL ыми говорю с деловыми
NGC_P6_PREPOSITIONAL ых говорю о деловых
UOFORM_FEMALE_ANIMATE NC_SINGULAR NGC_P1_NOMINATIVE ая деловая
NGC_P2_GENITIVE ой подарок для деловой
NGC_P3_DATIVE ой подарок деловой
NGC_P4_ACCUSATIVE ую обвиняю деловую
NGC_P5_INSTRUMENTAL ой говорю с деловой
NGC_P6_PREPOSITIONAL ой говорю о деловой
NC_PLURAL NGC_P1_NOMINATIVE ые деловые
NGC_P2_GENITIVE ых подарок для деловых
NGC_P3_DATIVE ым подарок деловым
NGC_P4_ACCUSATIVE ых обвиняю деловых
NGC_P5_INSTRUMENTAL ыми говорю с деловыми
NGC_P6_PREPOSITIONAL ых говорю о деловых
IOFORM_FEMALE_INANIMATE NC_SINGULAR NGC_P1_NOMINATIVE ая другая
NGC_P2_GENITIVE ой подарок для другой
NGC_P3_DATIVE ой подарок другой
NGC_P4_ACCUSATIVE ую обвиняю другую
NGC_P5_INSTRUMENTAL ой говорю с другой
NGC_P6_PREPOSITIONAL ой говорю о другой
NC_PLURAL NGC_P1_NOMINATIVE ие другие
NGC_P2_GENITIVE их подарок для других
NGC_P3_DATIVE им подарок другим
NGC_P4_ACCUSATIVE ие обвиняю другие
NGC_P5_INSTRUMENTAL ими говорю с другими
NGC_P6_PREPOSITIONAL их говорю о других
IOFORM_FEMALE_ANIMATE NC_SINGULAR NGC_P1_NOMINATIVE ая другая
NGC_P2_GENITIVE ой подарок для другой
NGC_P3_DATIVE ой подарок другой
NGC_P4_ACCUSATIVE ую обвиняю другую
NGC_P5_INSTRUMENTAL ой говорю с другой
NGC_P6_PREPOSITIONAL ой говорю о другой
NC_PLURAL NGC_P1_NOMINATIVE ие другие
NGC_P2_GENITIVE их подарок для других
NGC_P3_DATIVE им подарок другим
NGC_P4_ACCUSATIVE ие обвиняю других
NGC_P5_INSTRUMENTAL ими говорю с другими
NGC_P6_PREPOSITIONAL их говорю о других
IFORM_NEUTRAL NC_SINGULAR NGC_P1_NOMINATIVE ее рабочее
NGC_P2_GENITIVE его подарок для рабочего
NGC_P3_DATIVE ему подарок рабочему
NGC_P4_ACCUSATIVE ее обвиняю рабочее
NGC_P5_INSTRUMENTAL им говорю с рабочим
NGC_P6_PREPOSITIONAL ем говорю о рабочем
NC_PLURAL NGC_P1_NOMINATIVE ие рабочие
NGC_P2_GENITIVE их подарок для рабочих
NGC_P3_DATIVE им подарок рабочим
NGC_P4_ACCUSATIVE ие обвиняю рабочие
NGC_P5_INSTRUMENTAL ими говорю с рабочими
NGC_P6_PREPOSITIONAL их говорю о рабочих
UFORM_NEUTRAL NC_SINGULAR NGC_P1_NOMINATIVE ое меловое
NGC_P2_GENITIVE ого подарок для мелового
NGC_P3_DATIVE ому подарок меловому
NGC_P4_ACCUSATIVE ое обвиняю меловое
NGC_P5_INSTRUMENTAL ым говорю с меловым
NGC_P6_PREPOSITIONAL ом говорю о меловом
NC_PLURAL NGC_P1_NOMINATIVE ые меловые
NGC_P2_GENITIVE ых подарок для меловых
NGC_P3_DATIVE ым подарок меловым
NGC_P4_ACCUSATIVE ые обвиняю меловые
NGC_P5_INSTRUMENTAL ыми говорю с меловыми
NGC_P6_PREPOSITIONAL ых говорю о меловых
UOFORM_NEUTRAL NC_SINGULAR NGC_P1_NOMINATIVE ое деловое
NGC_P2_GENITIVE ого подарок для делового
NGC_P3_DATIVE ому подарок деловому
NGC_P4_ACCUSATIVE ое обвиняю деловое
NGC_P5_INSTRUMENTAL ым говорю с деловым
NGC_P6_PREPOSITIONAL ом говорю о деловом
NC_PLURAL NGC_P1_NOMINATIVE ые деловые
NGC_P2_GENITIVE ых подарок для деловых
NGC_P3_DATIVE ым подарок деловым
NGC_P4_ACCUSATIVE ые обвиняю деловые
NGC_P5_INSTRUMENTAL ыми говорю с деловыми
NGC_P6_PREPOSITIONAL ых говорю о деловых
IOFORM_NEUTRAL NC_SINGULAR NGC_P1_NOMINATIVE ое другое
NGC_P2_GENITIVE ого подарок для другого
NGC_P3_DATIVE ому подарок другому
NGC_P4_ACCUSATIVE ое обвиняю другое
NGC_P5_INSTRUMENTAL им говорю с другим
NGC_P6_PREPOSITIONAL ом говорю о другом
NC_PLURAL NGC_P1_NOMINATIVE ие другие
NGC_P2_GENITIVE их подарок для других
NGC_P3_DATIVE им подарок другим
NGC_P4_ACCUSATIVE ие обвиняю другие
NGC_P5_INSTRUMENTAL ими говорю с другими
NGC_P6_PREPOSITIONAL их говорю о других
Binary file not shown.
+32
View File
@@ -0,0 +1,32 @@
There is 7 excel files with words:
frequent_nouns_2000.xlsx
frequent_adjectives_2000.xlsx
frequent_verbs_2000.xlsx
frequent_other_2000.xlsx
numerals.xlsx
preposition.xlsx
pronouns.xlsx
Each table have list of words, and their params. You don't need to edit those params, I will do it by myself.
Last 9 columns are about translation. Those columns have titles:
Перевод 1
Комментарий 1
Пример 1
Перевод 2
Комментарий 2
Пример 2
Перевод 3
Комментарий 3
Пример 3
Obviously, for each word 3 possible translations are reserved, and each translation have resulted word or phrase (Перевод), comment about this translation (Комментарий) and example of usage (Пример).
Only resulted word/phrase is mandatory, comment and example may remain empty.
At least one translation is needed - if no other translation available, cells for other 2 translations may remain empty. If you have more than 3 possible translations, write them too - just expand row to the left, adding fields "Перевод", "Комментарий" and "Пример" for other translations. They will not appear in application, but later I can extend application to utilize them.
New lines inside cell are not allowed, you should write everything in one line.
About example - it is better to write phrase in Russian that is using this word, and then write Chinese translation in braces.
At first, you may write only translations, you can add examples and comments later.
+43
View File
@@ -0,0 +1,43 @@
Номер Слово Тип Перевод 1 Комментарий 1 Пример 1 Перевод 2 Комментарий 2 Пример 2 Перевод 3 Комментарий 3 Пример 3
один NUMERAL_NOUN 一 Один человек (一人) 单 Он один (他是单身)
два NUMERAL_NOUN
три NUMERAL_NOUN
четыре NUMERAL_NOUN
пять NUMERAL_NOUN
шесть NUMERAL_NOUN
семь NUMERAL_NOUN
восемь NUMERAL_NOUN
девять NUMERAL_NOUN
десять NUMERAL_NOUN
одиннадцать NUMERAL_NOUN
двенадцать NUMERAL_NOUN
тринадцать NUMERAL_NOUN
четырнадцать NUMERAL_NOUN
пятнадцать NUMERAL_NOUN
шестнадцать NUMERAL_NOUN
семнадцать NUMERAL_NOUN
восемнадцать NUMERAL_NOUN
девятнадцать NUMERAL_NOUN
двадцать NUMERAL_NOUN
тридцать NUMERAL_NOUN
сорок NUMERAL_NOUN
пятьдесят NUMERAL_NOUN
шестьдесят NUMERAL_NOUN
семьдесят NUMERAL_NOUN
восемьдесят NUMERAL_NOUN
девяносто NUMERAL_NOUN
сто NUMERAL_NOUN
раз NUMERAL_NOUN
несколько NUMERAL_NOUN_GENITIVE
оба NUMERAL_NOUN_GENITIVE
двое NUMERAL_NOUN_GENITIVE
трое NUMERAL_NOUN_GENITIVE
четверо NUMERAL_NOUN_GENITIVE
пятеро NUMERAL_NOUN_GENITIVE
шестеро NUMERAL_NOUN_GENITIVE
семеро NUMERAL_NOUN_GENITIVE
восьмеро NUMERAL_NOUN_GENITIVE
девятеро NUMERAL_NOUN_GENITIVE
десятеро NUMERAL_NOUN_GENITIVE
полтора NUMERAL_NOUN_GENITIVE
полторы NUMERAL_NOUN_GENITIVE
Binary file not shown.
+34
View File
@@ -0,0 +1,34 @@
Номер Предлог Родительный падеж Дательный падеж Винительный падеж Творительный падеж Предложный падеж Перевод 1 Комментарий 1 Пример 1 Перевод 2 Комментарий 2 Пример 2 Перевод 3 Комментарий 3 Пример 3
в 1 0 1 0 1 在 Учитель в школе (老师在学校)
во 1 0 1 0 1
без 1 0 0 0 0
до 1 0 0 0 0
из 1 0 0 0 0
к 0 1 0 0 0
ко 0 1 0 0 0
на 1 0 1 0 1
по 0 1 0 0 0
о 0 0 1 0 1
от 1 0 0 0 0
перед 0 0 0 1 0
при 0 0 0 0 1
через 1 0 1 0 0
с 1 0 0 1 0
у 1 0 0 0 0
за 1 0 1 1 0
над 0 0 0 1 0
об 0 0 1 0 1
обо 0 0 1 0 1
про 1 0 1 0 0
для 1 0 0 0 0
вблизи 1 0 0 0 0
вглубь 1 0 0 0 0
вдоль 1 0 0 0 0
возле 1 0 0 0 0
подле 1 0 0 0 0
вокруг 1 0 0 0 0
около 1 0 0 0 0
впереди 1 0 0 0 0
после 1 0 0 0 0
из-под 1 0 0 0 0
из-за 1 0 0 0 0
Binary file not shown.
+55
View File
@@ -0,0 +1,55 @@
Номер Местоимение Тип Перевод 1 Комментарий 1 Пример 1 Перевод 2 Комментарий 2 Пример 2 Перевод 3 Комментарий 3 Пример 3
1 я PRONOUN_NOUN 我 Я человек (我是男人)
2 ты PRONOUN_NOUN
3 он PRONOUN_NOUN
4 она PRONOUN_NOUN
5 оно PRONOUN_NOUN
6 мы PRONOUN_NOUN
7 вы PRONOUN_NOUN
8 они PRONOUN_NOUN
что-то PRONOUN_NOUN
кое-что PRONOUN_NOUN
что-нибудь PRONOUN_NOUN
ничто PRONOUN_NOUN
нечто PRONOUN_NOUN
кто-то PRONOUN_NOUN
кое-кто PRONOUN_NOUN
кто-нибудь PRONOUN_NOUN
некто PRONOUN_NOUN
никто PRONOUN_NOUN
мой PRONOUN_OWNERSHIP
твой PRONOUN_OWNERSHIP
его PRONOUN_OWNERSHIP
ее PRONOUN_OWNERSHIP
наш PRONOUN_OWNERSHIP
ваш PRONOUN_OWNERSHIP
их PRONOUN_OWNERSHIP
свой PRONOUN_OWNERSHIP
чей-то PRONOUN_OWNERSHIP
кого-то PRONOUN_OWNERSHIP
кое-кого PRONOUN_OWNERSHIP
кого-нибудь PRONOUN_OWNERSHIP
никого PRONOUN_OWNERSHIP
нечего PRONOUN_OWNERSHIP
ничего PRONOUN_OWNERSHIP
чего-то PRONOUN_OWNERSHIP
кое-что PRONOUN_OWNERSHIP
чот-нибудь PRONOUN_OWNERSHIP
некого PRONOUN_OWNERSHIP
меня PRONOUN_GENITIVE
тебя PRONOUN_GENITIVE
его PRONOUN_GENITIVE
ее PRONOUN_GENITIVE
нас PRONOUN_GENITIVE
вас PRONOUN_GENITIVE
их PRONOUN_GENITIVE
себя PRONOUN_GENITIVE
кого-то PRONOUN_GENITIVE
кое-кого PRONOUN_GENITIVE
кого-нибудь PRONOUN_GENITIVE
никого PRONOUN_GENITIVE
ничего PRONOUN_GENITIVE
нечего PRONOUN_GENITIVE
что-то PRONOUN_GENITIVE
кое-что PRONOUN_GENITIVE
что-нибудь PRONOUN_GENITIVE
Binary file not shown.
+22
View File
@@ -0,0 +1,22 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Express 2013 for Windows Desktop
VisualStudioVersion = 12.0.30723.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "rudict", "rudict\rudict.vcxproj", "{6AAE716F-0F7C-4A75-94C9-83C86F18BEA3}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Release|Win32 = Release|Win32
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{6AAE716F-0F7C-4A75-94C9-83C86F18BEA3}.Debug|Win32.ActiveCfg = Debug|Win32
{6AAE716F-0F7C-4A75-94C9-83C86F18BEA3}.Debug|Win32.Build.0 = Debug|Win32
{6AAE716F-0F7C-4A75-94C9-83C86F18BEA3}.Release|Win32.ActiveCfg = Release|Win32
{6AAE716F-0F7C-4A75-94C9-83C86F18BEA3}.Release|Win32.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
+700
View File
@@ -0,0 +1,700 @@
#include "adjective.h"
#include <string>
#include <iostream> //Xperimental -- for debug only
#include "utf8utf16.h"
#include "boost/regex.hpp"
#include "boost/algorithm/string/regex.hpp"
namespace AJ
{
std::vector<AdjectiveRecord> AdjectiveRecordArr;
std::vector<AdjectiveDeclencionCaseTableRecord> adjectiveDeclencionCaseTable;
AdjectiveRecord::AdjectiveRecord()
{
SetAllFields();
}
AdjectiveRecord::AdjectiveRecord(std::wstring line)
{
std::vector<std::wstring> lineArr;
boost::split_regex(lineArr, line, boost::wregex(L" "));
SetWord(lineArr[1]);
SetAllFields(lineArr);
FillTranslationUnit(lineArr, 4);
}
bool AdjectiveRecord::getStandardShortFormAvailable() const
{
return properties.get<bool>(L"standardShortFormAvailable");
}
std::wstring AdjectiveRecord::getSpecialShortForm() const
{
return properties.get<std::wstring>(L"specialShortForm");
}
void AdjectiveRecord::SetAllFields()
{
properties.put(L"standardShortFormAvailable", false);
properties.put(L"specialShortForm", L"");
}
void AdjectiveRecord::SetAllFields(const std::vector<std::wstring>& lineArr)
{
properties.put(L"standardShortFormAvailable", lineArr[2] == L"1" ? true : false);
properties.put(L"specialShortForm", lineArr[3]);
}
/*
bool AdjectiveStruct::operator<(const AdjectiveStruct& n) const
{
if (grammaticalCase != n.grammaticalCase)
{
return grammaticalCase < n.grammaticalCase;
}
else
{
if (count != n.count)
{
return count < n.count;
}
else
{
if (gender != n.gender)
{
return gender < n.gender;
}
else
{
if (isDeclentionAnimated != n.isDeclentionAnimated)
{
return isDeclentionAnimated < n.isDeclentionAnimated;
}
else
{
return adjectiveRecord < n.adjectiveRecord;
}
}
}
}
}
*/
/*NounGrammaticalCase grammaticalCase;
NounCount count;
NounGender gender;
bool isDeclentionAnimated;*/
AdjectiveStruct::AdjectiveStruct()
/*
: grammaticalCase(NGC_P1_NOMINATIVE)
, count(NC_SINGULAR)
, gender(NG_MALE)
, isDeclentionAnimated(false)*/
{
}
AdjectiveStruct::AdjectiveStruct(NounGrammaticalCase iGrammaticalCase, NounCount iCount, NounGender iGender, bool iIsDeclentionAnimated)
/*
: grammaticalCase(iGrammaticalCase)
, count(iCount)
, gender(iGender)
, isDeclentionAnimated(iIsDeclentionAnimated)
*/
{
modificatorTree.put(L"grammaticalCase", NounGrammaticalCaseToWString(iGrammaticalCase));
modificatorTree.put(L"animated", iIsDeclentionAnimated);
modificatorTree.put(L"count", NounCountToWString(iCount));
modificatorTree.put(L"gender", iGender);
}
/*
boost::property_tree::wptree AdjectiveStruct::GetModificators() const
{
boost::property_tree::wptree result;
result.put(L"grammaticalCase", NounGrammaticalCaseToWString(grammaticalCase));
result.put(L"animated", isDeclentionAnimated);
result.put(L"count", NounCountToWString(count));
result.put(L"gender", gender);
return result;
}
*/
AdjectivePair::AdjectivePair()
{
}
AdjectivePair::AdjectivePair(AdjectiveStruct iModificator, AdjectiveRecord iWordRecord)
: modificator(iModificator)
, wordRecord(iWordRecord)
{
}
const WordModificatorInterface& AdjectivePair::wordModificator() const
{
return modificator;
}
const WordHolder& AdjectivePair::word() const
{
return wordRecord;
}
std::wstring AdjectivePair::getType()
{
return L"adjective";
}
std::vector<std::wstring> GetAllAdjectiveEndingArr()
{
std::vector<std::wstring> result;
result.push_back(L"ий");
result.push_back(L"его");
result.push_back(L"ему");
result.push_back(L"им");
result.push_back(L"ем");
result.push_back(L"ие");
result.push_back(L"их");
result.push_back(L"ими");
result.push_back(L"ой");
result.push_back(L"ый");
result.push_back(L"ого");
result.push_back(L"ому");
result.push_back(L"ым");
result.push_back(L"ом");
result.push_back(L"ые");
result.push_back(L"ых");
result.push_back(L"ыми");
result.push_back(L"ая");
result.push_back(L"ей");
result.push_back(L"ую");
result.push_back(L"ее");
result.push_back(L"ое");
return result;
}
AdjectiveDeclencion WStringToAdjectiveDeclencion(std::wstring str)
{
if (str == L"IFORM_MALE_INANIMATE")
{
return IFORM_MALE_INANIMATE;
}
if (str == L"IFORM_MALE_ANIMATE")
{
return IFORM_MALE_ANIMATE;
}
if (str == L"UFORM_MALE_INANIMATE")
{
return UFORM_MALE_INANIMATE;
}
if (str == L"UFORM_MALE_ANIMATE")
{
return UFORM_MALE_ANIMATE;
}
if (str == L"UOFORM_MALE_INANIMATE")
{
return UOFORM_MALE_INANIMATE;
}
if (str == L"UOFORM_MALE_ANIMATE")
{
return UOFORM_MALE_ANIMATE;
}
if (str == L"IOFORM_MALE_INANIMATE")
{
return IOFORM_MALE_INANIMATE;
}
if (str == L"IOFORM_MALE_ANIMATE")
{
return IOFORM_MALE_ANIMATE;
}
if (str == L"IFORM_FEMALE_INANIMATE")
{
return IFORM_FEMALE_INANIMATE;
}
if (str == L"IFORM_FEMALE_ANIMATE")
{
return IFORM_FEMALE_ANIMATE;
}
if (str == L"UFORM_FEMALE_INANIMATE")
{
return UFORM_FEMALE_INANIMATE;
}
if (str == L"UFORM_FEMALE_ANIMATE")
{
return UFORM_FEMALE_ANIMATE;
}
if (str == L"UOFORM_FEMALE_INANIMATE")
{
return UOFORM_FEMALE_INANIMATE;
}
if (str == L"UOFORM_FEMALE_ANIMATE")
{
return UOFORM_FEMALE_ANIMATE;
}
if (str == L"IOFORM_FEMALE_INANIMATE")
{
return IOFORM_FEMALE_INANIMATE;
}
if (str == L"IOFORM_FEMALE_ANIMATE")
{
return IOFORM_FEMALE_ANIMATE;
}
if (str == L"IFORM_NEUTRAL")
{
return IFORM_NEUTRAL;
}
if (str == L"UFORM_NEUTRAL")
{
return UFORM_NEUTRAL;
}
if (str == L"UOFORM_NEUTRAL")
{
return UOFORM_NEUTRAL;
}
if (str == L"IOFORM_NEUTRAL")
{
return IOFORM_NEUTRAL;
}
std::cout << "Error in WStringToAdjectiveDeclencion";
return IFORM_MALE_INANIMATE;
}
bool AdjectiveEndingDivision::operator<(const AdjectiveEndingDivision& other) const
{
if (base != other.base)
{
return base < other.base;
}
else
{
if (ending != other.ending)
{
return ending < other.ending;
}
else
{
return divisionCase < other.divisionCase;
}
}
}
std::set<AdjectiveEndingDivision> getPossibleAdjectiveEndingDivisionSet(std::wstring noun)
{
std::set<AdjectiveEndingDivision> result;
auto allAdjectiveEndingArr = GetAllAdjectiveEndingArr();
for (auto ending : allAdjectiveEndingArr)
{
if (boost::ends_with(noun, ending))
{
std::wstring adjectiveBase = boost::replace_last_copy(noun, ending, "");
if (charIsConsolant(adjectiveBase[adjectiveBase.size() - 1]))
{
result.insert({ adjectiveBase, ending, AdjectiveEndingDivision::DC_COMMON });
}
}
}
return result;
}
std::vector<AdjectiveTuple> GetPossibleTupleArr(std::wstring ending)
{
std::vector<AdjectiveTuple> result;
for (auto& adjective : adjectiveDeclencionCaseTable)
{
for (int i = 0; i < NGC_SIZE * NC_SIZE; i++)
{
if (adjective.grammaticalCaseTable[i].ending.count(ending) != 0)
{
result.push_back(AdjectiveTuple{ adjective.adjectiveDeclencion, adjective.grammaticalCaseTable[i].count, adjective.grammaticalCaseTable[i].grammaticalCase });
}
}
}
return result;
}
bool AdjectiveIsInDictionary(std::wstring nominative)
{
for (auto& adjective : AdjectiveRecordArr)
{
if (adjective.GetWord() == nominative)
{
return true;
}
}
return false;
}
AdjectiveRecord GetAdjectiveRecordFromDictionary(std::wstring nominative)
{
for (auto& adjective : AdjectiveRecordArr)
{
if (adjective.GetWord() == nominative)
{
return adjective;
}
}
return{};
}
std::set<std::wstring> GetNominativeMaleSingular(std::wstring base)
{
std::wstring result;
if (charIsIFormConsolant(base[base.size() - 1]))
{
return{ base + L"ий", base + L"ой" };
}
if (charIsUFormConsolant(base[base.size() - 1]))
{
return{ base + L"ый", base + L"ой" };
}
return{};
}
bool IsDeclencionAnimated(AdjectiveDeclencion declention)
{
switch (declention)
{
case AJ::IFORM_MALE_ANIMATE:
case AJ::UFORM_MALE_ANIMATE:
case AJ::UOFORM_MALE_ANIMATE:
case AJ::IOFORM_MALE_ANIMATE:
case AJ::IFORM_FEMALE_ANIMATE:
case AJ::UFORM_FEMALE_ANIMATE:
case AJ::UOFORM_FEMALE_ANIMATE:
case AJ::IOFORM_FEMALE_ANIMATE:
return true;
break;
default:
return false;
break;
}
}
NounGender GetGenderFromDeclencion(AdjectiveDeclencion declention)
{
switch (declention)
{
case AJ::IFORM_MALE_INANIMATE:
case AJ::IFORM_MALE_ANIMATE:
case AJ::UFORM_MALE_INANIMATE:
case AJ::UFORM_MALE_ANIMATE:
case AJ::UOFORM_MALE_INANIMATE:
case AJ::UOFORM_MALE_ANIMATE:
case AJ::IOFORM_MALE_INANIMATE:
case AJ::IOFORM_MALE_ANIMATE:
return NG_MALE;
break;
case AJ::IFORM_FEMALE_INANIMATE:
case AJ::IFORM_FEMALE_ANIMATE:
case AJ::UFORM_FEMALE_INANIMATE:
case AJ::UFORM_FEMALE_ANIMATE:
case AJ::UOFORM_FEMALE_INANIMATE:
case AJ::UOFORM_FEMALE_ANIMATE:
case AJ::IOFORM_FEMALE_INANIMATE:
case AJ::IOFORM_FEMALE_ANIMATE:
return NG_FEMALE;
break;
default:
return NG_NEUTRAL;
break;
}
}
bool IFormTest(const AdjectiveRecord& r)
{
return charIsIFormConsolant(r.GetPrevPrevLastChar());
}
bool UFormTest(const AdjectiveRecord& r)
{
return charIsUFormConsolant(r.GetPrevPrevLastChar());
}
std::map<AdjectiveDeclencion, std::function < bool(const AdjectiveRecord&) >> DeclentionConditionMap;
void SetupDeclentionMap()
{
DeclentionConditionMap[IFORM_MALE_INANIMATE] = std::bind(IFormTest, std::placeholders::_1);
DeclentionConditionMap[IFORM_MALE_ANIMATE] = std::bind(IFormTest, std::placeholders::_1);
DeclentionConditionMap[UFORM_MALE_INANIMATE] = std::bind(UFormTest, std::placeholders::_1);
DeclentionConditionMap[UFORM_MALE_ANIMATE] = std::bind(UFormTest, std::placeholders::_1);
DeclentionConditionMap[UOFORM_MALE_INANIMATE] = std::bind(UFormTest, std::placeholders::_1);
DeclentionConditionMap[UOFORM_MALE_ANIMATE] = std::bind(UFormTest, std::placeholders::_1);
DeclentionConditionMap[IOFORM_MALE_INANIMATE] = std::bind(IFormTest, std::placeholders::_1);
DeclentionConditionMap[IOFORM_MALE_ANIMATE] = std::bind(IFormTest, std::placeholders::_1);
DeclentionConditionMap[IFORM_FEMALE_INANIMATE] = std::bind(IFormTest, std::placeholders::_1);
DeclentionConditionMap[IFORM_FEMALE_ANIMATE] = std::bind(IFormTest, std::placeholders::_1);
DeclentionConditionMap[UFORM_FEMALE_INANIMATE] = std::bind(UFormTest, std::placeholders::_1);
DeclentionConditionMap[UFORM_FEMALE_ANIMATE] = std::bind(UFormTest, std::placeholders::_1);
DeclentionConditionMap[IOFORM_FEMALE_INANIMATE] = std::bind(IFormTest, std::placeholders::_1);
DeclentionConditionMap[IOFORM_FEMALE_ANIMATE] = std::bind(IFormTest, std::placeholders::_1);
DeclentionConditionMap[UOFORM_FEMALE_INANIMATE] = std::bind(UFormTest, std::placeholders::_1);
DeclentionConditionMap[UOFORM_FEMALE_ANIMATE] = std::bind(UFormTest, std::placeholders::_1);
DeclentionConditionMap[IFORM_NEUTRAL] = std::bind(IFormTest, std::placeholders::_1);
DeclentionConditionMap[UFORM_NEUTRAL] = std::bind(UFormTest, std::placeholders::_1);
DeclentionConditionMap[IOFORM_NEUTRAL] = std::bind(IFormTest, std::placeholders::_1);
DeclentionConditionMap[UOFORM_NEUTRAL] = std::bind(UFormTest, std::placeholders::_1);
}
bool AdjectiveFitsDeclention(AdjectiveRecord record, AdjectiveTuple tuple)
{
AdjectiveDeclencion declencion = std::get<0>(tuple);
bool standardDeclention = DeclentionConditionMap[declencion](record);
if (standardDeclention)
{
return true;
}
return false;
}
std::map < AdjectiveEndingDivision::DivisionCase, std::function < bool(AdjectiveTuple) >> DivisionCaseAdjectiveTupleFilterMap;
std::map < AdjectiveEndingDivision::DivisionCase, std::function < bool(AdjectiveTuple, AdjectiveRecord) >> DivisionCaseAdjectiveTupleRecordFilterMap;
void FillDivisionCaseMaps()
{
DivisionCaseAdjectiveTupleFilterMap[AdjectiveEndingDivision::DC_COMMON] = [](AdjectiveTuple tuple)
{
return true;
};
DivisionCaseAdjectiveTupleRecordFilterMap[AdjectiveEndingDivision::DC_COMMON] = [](AdjectiveTuple tuple, AdjectiveRecord record)
{
return AdjectiveFitsDeclention(record, tuple);
};
}
void RecognizeAdjective(std::wstring noun, std::vector<std::shared_ptr<WordPairInterface>>& wordPairArr)
{
auto adjectiveEndingDivisionArr = getPossibleAdjectiveEndingDivisionSet(noun);
for (auto adjectiveEndingDivision : adjectiveEndingDivisionArr)
{
std::wstring base = adjectiveEndingDivision.base;
std::wstring ending = adjectiveEndingDivision.ending;
AdjectiveEndingDivision::DivisionCase dc = adjectiveEndingDivision.divisionCase;
std::wstring modifiedBase = base;
std::wstring modifiedEnding = ending;
std::vector<AdjectiveTuple> possibleTupleArr = GetPossibleTupleArr(modifiedEnding);
for (AdjectiveTuple tuple : possibleTupleArr)
{
if (DivisionCaseAdjectiveTupleFilterMap[dc](tuple))
{
std::set<std::wstring> nominaviteSingularSet = GetNominativeMaleSingular(modifiedBase);
for (auto& nn : nominaviteSingularSet)
{
if (AdjectiveIsInDictionary(nn))
{
AdjectiveRecord record = GetAdjectiveRecordFromDictionary(nn);
if (DivisionCaseAdjectiveTupleRecordFilterMap[dc](tuple, record))
{
AdjectiveStruct modificator(std::get<2>(tuple), std::get<1>(tuple), GetGenderFromDeclencion(std::get<0>(tuple)), IsDeclencionAnimated(std::get<0>(tuple)));
AdjectivePair* wPair = new AdjectivePair(modificator, record);
wordPairArr.push_back(std::shared_ptr<WordPairInterface>(wPair));
}
}
}
}
}
}
}
void LoadAdjectiveDeclencionCaseTable()
{
adjectiveDeclencionCaseTable.clear();
#ifdef _WIN32
std::ifstream f("C:/Workplace/ChineseJournal/rudict/grammar_case_adjective.txt");
#else
std::ifstream f("/home/devuser/workplace/rudict/grammar_case_adjective.txt");
#endif
std::string line;
std::wstring wline;
if (f.is_open())
{
std::cout << "File found!" << std::endl;
std::vector<GrammaticalTableRecord> currentGrammaticalCaseTable;
std::wstring currentAdjectiveDeclencion;
std::wstring currentAdjectiveCount;
getline(f, line); //Skip one line
while (getline(f, line))
{
std::vector<std::string> lineArr;
boost::split_regex(lineArr, line, boost::regex(" "));
if (lineArr[0] != "")
{
if (currentAdjectiveDeclencion == L"")
{
currentAdjectiveDeclencion = string_to_wstring(lineArr[0]);
}
else
{
adjectiveDeclencionCaseTable.push_back(AdjectiveDeclencionCaseTableRecord{ WStringToAdjectiveDeclencion(currentAdjectiveDeclencion), currentGrammaticalCaseTable });
currentAdjectiveDeclencion = string_to_wstring(lineArr[0]);
currentGrammaticalCaseTable.clear();
}
}
if (lineArr[1] != "")
{
currentAdjectiveCount = string_to_wstring(lineArr[1]);
}
std::wstring endings = string_to_wstring(lineArr[3]);
std::set<std::wstring> endingsSet;
boost::split_regex(endingsSet, endings, boost::regex(", "));
currentGrammaticalCaseTable.push_back({
WStringToNounCount(currentAdjectiveCount),
WStringToNounGrammaticalCase(string_to_wstring(lineArr[2])),
endingsSet
});
}
//Add last one
if (currentAdjectiveDeclencion != L"")
{
adjectiveDeclencionCaseTable.push_back(AdjectiveDeclencionCaseTableRecord{ WStringToAdjectiveDeclencion(currentAdjectiveDeclencion), currentGrammaticalCaseTable });
}
f.close();
}
else
{
std::cout << "file not found!" << std::endl;
}
}
void LoadFrequentAdjectiveSet()
{
#ifdef _WIN32
std::ifstream f("C:/Workplace/ChineseJournal/rudict/frequent_adjectives_2000.txt");
#else
std::ifstream f("/home/devuser/workplace/rudict/frequent_adjectives_2000.txt");
#endif
std::string line;
std::wstring wline;
if (f.is_open())
{
getline(f, line); //Skip one line
std::cout << "File found!" << std::endl;
while (getline(f, line))
{
wline = string_to_wstring(line);
AdjectiveRecord adjectiveRecord(wline);
AdjectiveRecordArr.push_back(adjectiveRecord);
}
f.close();
}
else
{
std::cout << "file not found!" << std::endl;
}
}
} //namespace AJ
+167
View File
@@ -0,0 +1,167 @@
#ifndef ADJECTIVE_H_INCLUDED
#define ADJECTIVE_H_INCLUDED
#include <string>
#include <map>
#include <set>
#include <vector>
#include <fstream>
#include "boost/algorithm/string.hpp"
#include "grammarCase.h"
namespace AJ
{
struct AdjectiveRecord : public WordHolder
{
bool getStandardShortFormAvailable() const;
std::wstring getSpecialShortForm() const;
void SetAllFields();
void SetAllFields(const std::vector<std::wstring>& lineArr);
AdjectiveRecord();
AdjectiveRecord(std::wstring line);
};
extern std::vector<AdjectiveRecord> AdjectiveRecordArr;
struct AdjectiveStruct : public WordModificatorInterface
{
/*
NounGrammaticalCase grammaticalCase;
NounCount count;
NounGender gender;
bool isDeclentionAnimated;
*/
AdjectiveStruct();
AdjectiveStruct(NounGrammaticalCase iGrammaticalCase, NounCount iCount, NounGender iGender, bool iIsDeclentionAnimated);
//boost::property_tree::wptree GetModificators() const;
};
struct AdjectivePair : public WordPairInterface
{
protected:
AdjectiveStruct modificator;
AdjectiveRecord wordRecord;
public:
AdjectivePair();
AdjectivePair(AdjectiveStruct iModificator, AdjectiveRecord iWordRecord);
virtual const WordModificatorInterface& wordModificator() const;
virtual const WordHolder& word() const;
virtual std::wstring getType();
};
std::vector<std::wstring> GetAllAdjectiveEndingArr();
enum AdjectiveDeclencion
{
IFORM_MALE_INANIMATE = 0,
IFORM_MALE_ANIMATE,
UFORM_MALE_INANIMATE,
UFORM_MALE_ANIMATE,
UOFORM_MALE_INANIMATE,
UOFORM_MALE_ANIMATE,
IOFORM_MALE_INANIMATE,
IOFORM_MALE_ANIMATE,
IFORM_FEMALE_INANIMATE,
IFORM_FEMALE_ANIMATE,
UFORM_FEMALE_INANIMATE,
UFORM_FEMALE_ANIMATE,
UOFORM_FEMALE_INANIMATE,
UOFORM_FEMALE_ANIMATE,
IOFORM_FEMALE_INANIMATE,
IOFORM_FEMALE_ANIMATE,
IFORM_NEUTRAL,
UFORM_NEUTRAL,
UOFORM_NEUTRAL,
IOFORM_NEUTRAL,
};
struct AdjectiveDeclencionCaseTableRecord
{
AdjectiveDeclencion adjectiveDeclencion;
std::vector<GrammaticalTableRecord> grammaticalCaseTable;
};
extern std::vector<AdjectiveDeclencionCaseTableRecord> adjectiveDeclencionCaseTable;
AdjectiveDeclencion WStringToAdjectiveDeclencion(std::wstring str);
struct AdjectiveEndingDivision
{
std::wstring base;
std::wstring ending;
enum DivisionCase
{
DC_COMMON = 0
} divisionCase;
bool operator<(const AdjectiveEndingDivision& other) const;
};
std::set<AdjectiveEndingDivision> getPossibleAdjectiveEndingDivisionSet(std::wstring noun);
typedef std::tuple <
AdjectiveDeclencion,
NounCount,
NounGrammaticalCase
> AdjectiveTuple;
std::vector<AdjectiveTuple> GetPossibleTupleArr(std::wstring ending);
bool AdjectiveIsInDictionary(std::wstring nominative);
AdjectiveRecord GetAdjectiveRecordFromDictionary(std::wstring nominative);
//std::set<std::wstring> GetAdjectiveNominative(std::wstring base, AdjectiveDeclencion declencion, NounCount nounCount);
std::set<std::wstring> GetNominativeMaleSingular(std::wstring base);
void SetupDeclentionMap();
bool AdjectiveFitsDeclention(AdjectiveRecord record, AdjectiveTuple tuple);
bool IsDeclencionAnimated(AdjectiveDeclencion declention);
NounGender GetGenderFromDeclencion(AdjectiveDeclencion declention);
void FillDivisionCaseMaps();
void RecognizeAdjective(std::wstring noun, std::vector<std::shared_ptr<WordPairInterface>>& wordPairArr);
void LoadAdjectiveDeclencionCaseTable();
void LoadFrequentAdjectiveSet();
} //namespace AJ
#endif //ADJECTIVE_H_INCLUDED
+291
View File
@@ -0,0 +1,291 @@
#include "grammarCase.h"
#include <iostream>
//std::vector<TranslationUnit> translationUnitArr;
void WordHolder::FillTranslationUnit(const std::vector<std::wstring>& lineArr, int startFrom)
{
for (int i = 0; i < 3; i++)
{
TranslationUnit translationUnit;
translationUnit.meaning = lineArr[startFrom + i * 3];
translationUnit.comment = lineArr[startFrom + i * 3 + 1];
translationUnit.example = lineArr[startFrom + i * 3 + 2];
if (translationUnit.meaning != L"")
{
translationUnitArr.push_back(translationUnit);
}
}
}
boost::property_tree::wptree WordHolder::CreateTranslationPropertyTree() const
{
boost::property_tree::wptree ptree;
for (auto& translationUnit : translationUnitArr)
{
boost::property_tree::wptree translationUnitTree;
translationUnitTree.put(L"meaning", translationUnit.meaning);
translationUnitTree.put(L"comment", translationUnit.comment);
translationUnitTree.put(L"example", translationUnit.example);
ptree.push_back(std::make_pair(L"", translationUnitTree));
}
return ptree;
}
bool WordHolder::operator<(const WordHolder& other) const
{
return word < other.word;
}
boost::property_tree::wptree WordHolder::GetProperties() const
{
return properties;
}
void WordHolder::SetWord(const std::wstring& w)
{
word = w;
}
std::wstring WordHolder::GetWord() const
{
return word;
}
wchar_t WordHolder::GetLastChar() const
{
if (word.size() == 0)
{
std::cout << "Error in GetLastChar" << std::endl;
}
return word[word.size() - 1];
}
wchar_t WordHolder::GetPrevLastChar() const
{
if (word.size() < 2)
{
std::cout << "Error in GetPrevLastChar" << std::endl;
}
return word[word.size() - 2];
}
wchar_t WordHolder::GetPrevPrevLastChar() const
{
if (word.size() < 3)
{
std::cout << "Error in GetPrevPrevLastChar" << std::endl;
}
return word[word.size() - 3];
}
std::wstring NounGenderToWString(NounGender g)
{
if (g == NG_MALE)
{
return L"NG_MALE";
}
else if (g == NG_FEMALE)
{
return L"NG_FEMALE";
}
else if (g == NG_NEUTRAL)
{
return L"NG_NEUTRAL";
}
std::cout << "Error in NounGenderToWString" << std::endl;
return L"";
}
std::wstring NormalizeNounGenderString(std::wstring str)
{
if (str == L"м")
{
return L"NG_MALE";
}
else if (str == L"ж")
{
return L"NG_FEMALE";
}
else if (str == L"с")
{
return L"NG_NEUTRAL";
}
std::cout << "Error in NormalizeNounGenderString" << std::endl;
return L"NG_MALE";
}
NounGender WStringToNounGender(std::wstring str)
{
if (str == L"NG_MALE")
{
return NG_MALE;
}
else if (str == L"NG_FEMALE")
{
return NG_FEMALE;
}
else if (str == L"NG_NEUTRAL")
{
return NG_NEUTRAL;
}
std::cout << "Warning - passing old variables to WStringToNounGender" << std::endl;
if (str == L"м")
{
return NG_MALE;
}
else if (str == L"ж")
{
return NG_FEMALE;
}
else if (str == L"с")
{
return NG_NEUTRAL;
}
std::cout << "Error in NounGenderToWString" << std::endl;
return NG_MALE;
}
NounCount WStringToNounCount(std::wstring str)
{
if (str == L"NC_SINGULAR")
{
return NC_SINGULAR;
}
if (str == L"NC_PLURAL")
{
return NC_PLURAL;
}
std::cout << "Error in WStringToNounCount!" << std::endl;
return NC_SINGULAR;
}
std::wstring NounCountToWString(NounCount nounCount)
{
if (nounCount == NC_SINGULAR)
{
return L"NC_SINGULAR";
}
if (nounCount == NC_PLURAL)
{
return L"NC_PLURAL";
}
std::cout << "Error in NounCountToWString!" << std::endl;
return L"";
}
std::wstring NounGrammaticalCaseToWString(NounGrammaticalCase nounGrammaticalCase)
{
switch (nounGrammaticalCase)
{
case NGC_P1_NOMINATIVE: return L"NGC_P1_NOMINATIVE";
case NGC_P2_GENITIVE: return L"NGC_P2_GENITIVE";
case NGC_P3_DATIVE: return L"NGC_P3_DATIVE";
case NGC_P4_ACCUSATIVE: return L"NGC_P4_ACCUSATIVE";
case NGC_P5_INSTRUMENTAL: return L"NGC_P5_INSTRUMENTAL";
case NGC_P6_PREPOSITIONAL: return L"NGC_P6_PREPOSITIONAL";
}
return L"";
}
NounGrammaticalCase WStringToNounGrammaticalCase(std::wstring str)
{
if (str == L"NGC_P1_NOMINATIVE")
{
return NGC_P1_NOMINATIVE;
}
if (str == L"NGC_P2_GENITIVE")
{
return NGC_P2_GENITIVE;
}
if (str == L"NGC_P3_DATIVE")
{
return NGC_P3_DATIVE;
}
if (str == L"NGC_P4_ACCUSATIVE")
{
return NGC_P4_ACCUSATIVE;
}
if (str == L"NGC_P5_INSTRUMENTAL")
{
return NGC_P5_INSTRUMENTAL;
}
if (str == L"NGC_P6_PREPOSITIONAL")
{
return NGC_P6_PREPOSITIONAL;
}
std::cout << "Error in WStringToNounGrammaticalCase!" << std::endl;
return NGC_P1_NOMINATIVE;
}
bool charIsConsolant(wchar_t c) //except й
{
std::wstring consolants = L"цкнгшщзхфвпрлджчсмтб";
for (wchar_t ic : consolants)
{
if (c == ic)
{
return true;
}
}
return false;
}
bool charIsVowel(wchar_t c)
{
std::wstring vovels = L"аоуыэяёюие";
for (wchar_t ic : vovels)
{
if (c == ic)
{
return true;
}
}
return false;
}
std::wstring i_form_consolants = L"гхкжшчщ";
std::wstring u_form_consolants = L"бпдтвфзснмлрц";
bool charIsIFormConsolant(wchar_t c)
{
return i_form_consolants.find(c) != i_form_consolants.npos;
}
bool charIsUFormConsolant(wchar_t c)
{
return u_form_consolants.find(c) != i_form_consolants.npos;
}
+157
View File
@@ -0,0 +1,157 @@
#ifndef GRAMMAR_CASE_H_INCLUDED
#define GRAMMAR_CASE_H_INCLUDED
#include <string>
#include <map>
#include <set>
#include <vector>
#include <fstream>
#include "boost/algorithm/string.hpp"
#include "boost/property_tree/ptree.hpp"
enum NounGender
{
NG_MALE = 0,
NG_FEMALE,
NG_NEUTRAL
};
enum NounGrammaticalCase
{
NGC_P1_NOMINATIVE = 0,
NGC_P2_GENITIVE,
NGC_P3_DATIVE,
NGC_P4_ACCUSATIVE,
NGC_P5_INSTRUMENTAL,
NGC_P6_PREPOSITIONAL,
NGC_SIZE
};
enum NounCount
{
NC_SINGULAR = 0,
NC_PLURAL,
NC_SIZE
};
struct GrammaticalTableRecord
{
NounCount count;
NounGrammaticalCase grammaticalCase;
std::set<std::wstring> ending;
};
struct TranslationUnit
{
std::wstring meaning;
std::wstring comment;
std::wstring example;
};
class WordHolder
{
private:
std::wstring word;
protected:
boost::property_tree::wptree properties;
std::vector<TranslationUnit> translationUnitArr;
void FillTranslationUnit(const std::vector<std::wstring>& lineArr, int startFrom);
public:
void SetWord(const std::wstring& w);
std::wstring GetWord() const;
wchar_t GetLastChar() const;
wchar_t GetPrevLastChar() const;
wchar_t GetPrevPrevLastChar() const;
bool operator<(const WordHolder& other) const;
boost::property_tree::wptree GetProperties() const;
boost::property_tree::wptree CreateTranslationPropertyTree() const;
bool operator==(const WordHolder& other) const
{
return word == other.word;
}
};
class WordModificatorInterface
{
protected:
boost::property_tree::wptree modificatorTree;
public:
virtual ~WordModificatorInterface()
{
}
boost::property_tree::wptree GetModificators() const
{
return modificatorTree;
}
bool operator==(const WordModificatorInterface& other) const
{
return modificatorTree == other.modificatorTree;
}
};
struct WordPairInterface
{
virtual const WordModificatorInterface& wordModificator() const = 0;
virtual const WordHolder& word() const = 0;
virtual std::wstring getType() = 0;
virtual ~WordPairInterface()
{
}
bool operator==(const WordPairInterface& other) const
{
return wordModificator() == other.wordModificator() && word() == other.word();
}
bool operator!=(const WordPairInterface& other) const
{
return !operator==(other);
}
};
std::wstring NounGenderToWString(NounGender g);
std::wstring NormalizeNounGenderString(std::wstring str);
NounGender WStringToNounGender(std::wstring str);
std::wstring NounCountToWString(NounCount nounCount);
NounCount WStringToNounCount(std::wstring str);
std::wstring NounGrammaticalCaseToWString(NounGrammaticalCase nounGrammaticalCase);
NounGrammaticalCase WStringToNounGrammaticalCase(std::wstring str);
bool charIsConsolant(wchar_t c); //except й
bool charIsVowel(wchar_t c);
bool charIsIFormConsolant(wchar_t c);
bool charIsUFormConsolant(wchar_t c);
#endif //GRAMMAR_CASE_H_INCLUDED
+41
View File
@@ -0,0 +1,41 @@
#
# Copyright (c) 2003-2014 Christopher M. Kohlhoff (chris at kohlhoff dot com)
#
# Distributed under the Boost Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#
subproject libs/asio/example/http/server ;
project boost : $(BOOST_ROOT) ;
if $(UNIX)
{
switch $(JAMUNAME)
{
case SunOS* :
{
SOCKET_LIBS = <find-library>socket <find-library>nsl ;
}
}
}
exe http_server
: <lib>@boost/libs/thread/build/boost_thread
<lib>@boost/libs/system/build/boost_system
connection.cpp
connection_manager.cpp
main.cpp
mime_types.cpp
reply.cpp
request_handler.cpp
request_parser.cpp
server.cpp
: <include>$(BOOST_ROOT)
<include>../../../../..
<define>BOOST_ALL_NO_LIB=1
<threading>multi
<mingw><*><find-library>ws2_32
<mingw><*><find-library>mswsock
$(SOCKET_LIBS)
;
+46
View File
@@ -0,0 +1,46 @@
#
# Copyright (c) 2003-2014 Christopher M. Kohlhoff (chris at kohlhoff dot com)
#
# Distributed under the Boost Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#
import os ;
if [ os.name ] = SOLARIS
{
lib socket ;
lib nsl ;
}
else if [ os.name ] = NT
{
lib ws2_32 ;
lib mswsock ;
}
else if [ os.name ] = HPUX
{
lib ipv6 ;
}
exe server
: connection.cpp
connection_manager.cpp
main.cpp
mime_types.cpp
reply.cpp
request_handler.cpp
request_parser.cpp
server.cpp
/boost/system//boost_system
/boost/thread//boost_thread
: <define>BOOST_ALL_NO_LIB=1
<threading>multi
<os>SOLARIS:<library>socket
<os>SOLARIS:<library>nsl
<os>NT:<define>_WIN32_WINNT=0x0501
<os>NT,<toolset>gcc:<library>ws2_32
<os>NT,<toolset>gcc:<library>mswsock
<os>NT,<toolset>gcc-cygwin:<define>__USE_W32_SOCKETS
<os>HPUX,<toolset>gcc:<define>_XOPEN_SOURCE_EXTENDED
<os>HPUX:<library>ipv6
;
@@ -0,0 +1,94 @@
//
// connection.cpp
// ~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2014 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include "connection.hpp"
#include <utility>
#include <vector>
#include "connection_manager.hpp"
#include "request_handler.hpp"
namespace http {
namespace server {
connection::connection(boost::asio::ip::tcp::socket socket,
connection_manager& manager, request_handler& handler)
: socket_(std::move(socket)),
connection_manager_(manager),
request_handler_(handler)
{
}
void connection::start()
{
do_read();
}
void connection::stop()
{
socket_.close();
}
void connection::do_read()
{
auto self(shared_from_this());
socket_.async_read_some(boost::asio::buffer(buffer_),
[this, self](boost::system::error_code ec, std::size_t bytes_transferred)
{
if (!ec)
{
request_parser::result_type result;
std::tie(result, std::ignore) = request_parser_.parse(
request_, buffer_.data(), buffer_.data() + bytes_transferred);
if (result == request_parser::good)
{
request_handler_.handle_request(request_, reply_);
do_write();
}
else if (result == request_parser::bad)
{
reply_ = reply::stock_reply(reply::bad_request);
do_write();
}
else
{
do_read();
}
}
else if (ec != boost::asio::error::operation_aborted)
{
connection_manager_.stop(shared_from_this());
}
});
}
void connection::do_write()
{
auto self(shared_from_this());
boost::asio::async_write(socket_, reply_.to_buffers(),
[this, self](boost::system::error_code ec, std::size_t)
{
if (!ec)
{
// Initiate graceful connection closure.
boost::system::error_code ignored_ec;
socket_.shutdown(boost::asio::ip::tcp::socket::shutdown_both,
ignored_ec);
}
if (ec != boost::asio::error::operation_aborted)
{
connection_manager_.stop(shared_from_this());
}
});
}
} // namespace server
} // namespace http
@@ -0,0 +1,79 @@
//
// connection.hpp
// ~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2014 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef HTTP_CONNECTION_HPP
#define HTTP_CONNECTION_HPP
#include <array>
#include <memory>
#include "boost/asio.hpp"
#include "reply.hpp"
#include "request.hpp"
#include "request_handler.hpp"
#include "request_parser.hpp"
namespace http {
namespace server {
class connection_manager;
/// Represents a single connection from a client.
class connection
: public std::enable_shared_from_this<connection>
{
public:
connection(const connection&) = delete;
connection& operator=(const connection&) = delete;
/// Construct a connection with the given socket.
explicit connection(boost::asio::ip::tcp::socket socket,
connection_manager& manager, request_handler& handler);
/// Start the first asynchronous operation for the connection.
void start();
/// Stop all asynchronous operations associated with the connection.
void stop();
private:
/// Perform an asynchronous read operation.
void do_read();
/// Perform an asynchronous write operation.
void do_write();
/// Socket for the connection.
boost::asio::ip::tcp::socket socket_;
/// The manager for this connection.
connection_manager& connection_manager_;
/// The handler used to process the incoming request.
request_handler& request_handler_;
/// Buffer for incoming data.
std::array<char, 8192> buffer_;
/// The incoming request.
request request_;
/// The parser for the incoming request.
request_parser request_parser_;
/// The reply to be sent back to the client.
reply reply_;
};
typedef std::shared_ptr<connection> connection_ptr;
} // namespace server
} // namespace http
#endif // HTTP_CONNECTION_HPP
@@ -0,0 +1,40 @@
//
// connection_manager.cpp
// ~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2014 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include "connection_manager.hpp"
namespace http {
namespace server {
connection_manager::connection_manager()
{
}
void connection_manager::start(connection_ptr c)
{
connections_.insert(c);
c->start();
}
void connection_manager::stop(connection_ptr c)
{
connections_.erase(c);
c->stop();
}
void connection_manager::stop_all()
{
for (auto c: connections_)
c->stop();
connections_.clear();
}
} // namespace server
} // namespace http
@@ -0,0 +1,48 @@
//
// connection_manager.hpp
// ~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2014 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef HTTP_CONNECTION_MANAGER_HPP
#define HTTP_CONNECTION_MANAGER_HPP
#include <set>
#include "connection.hpp"
namespace http {
namespace server {
/// Manages open connections so that they may be cleanly stopped when the server
/// needs to shut down.
class connection_manager
{
public:
connection_manager(const connection_manager&) = delete;
connection_manager& operator=(const connection_manager&) = delete;
/// Construct a connection manager.
connection_manager();
/// Add the specified connection to the manager and start it.
void start(connection_ptr c);
/// Stop the specified connection.
void stop(connection_ptr c);
/// Stop all connections.
void stop_all();
private:
/// The managed connections.
std::set<connection_ptr> connections_;
};
} // namespace server
} // namespace http
#endif // HTTP_CONNECTION_MANAGER_HPP
+28
View File
@@ -0,0 +1,28 @@
//
// header.hpp
// ~~~~~~~~~~
//
// Copyright (c) 2003-2014 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef HTTP_HEADER_HPP
#define HTTP_HEADER_HPP
#include <string>
namespace http {
namespace server {
struct header
{
std::string name;
std::string value;
};
} // namespace server
} // namespace http
#endif // HTTP_HEADER_HPP
+43
View File
@@ -0,0 +1,43 @@
//
// main.cpp
// ~~~~~~~~
//
// Copyright (c) 2003-2014 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include <iostream>
#include <string>
#include <boost/asio.hpp>
#include "server.hpp"
int main(int argc, char* argv[])
{
try
{
// Check command line arguments.
if (argc != 4)
{
std::cerr << "Usage: http_server <address> <port> <doc_root>\n";
std::cerr << " For IPv4, try:\n";
std::cerr << " receiver 0.0.0.0 80 .\n";
std::cerr << " For IPv6, try:\n";
std::cerr << " receiver 0::0 80 .\n";
return 1;
}
// Initialise the server.
http::server::server s(argv[1], argv[2], argv[3]);
// Run the server until stopped.
s.run();
}
catch (std::exception& e)
{
std::cerr << "exception: " << e.what() << "\n";
}
return 0;
}
@@ -0,0 +1,45 @@
//
// mime_types.cpp
// ~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2014 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include "mime_types.hpp"
namespace http {
namespace server {
namespace mime_types {
struct mapping
{
const char* extension;
const char* mime_type;
} mappings[] =
{
{ "gif", "image/gif" },
{ "htm", "text/html" },
{ "html", "text/html" },
{ "jpg", "image/jpeg" },
{ "png", "image/png" }
};
std::string extension_to_type(const std::string& extension)
{
for (mapping m: mappings)
{
if (m.extension == extension)
{
return m.mime_type;
}
}
return "text/plain";
}
} // namespace mime_types
} // namespace server
} // namespace http
@@ -0,0 +1,27 @@
//
// mime_types.hpp
// ~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2014 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef HTTP_MIME_TYPES_HPP
#define HTTP_MIME_TYPES_HPP
#include <string>
namespace http {
namespace server {
namespace mime_types {
/// Convert a file extension into a MIME type.
std::string extension_to_type(const std::string& extension);
} // namespace mime_types
} // namespace server
} // namespace http
#endif // HTTP_MIME_TYPES_HPP
+255
View File
@@ -0,0 +1,255 @@
//
// reply.cpp
// ~~~~~~~~~
//
// Copyright (c) 2003-2014 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include "reply.hpp"
#include <string>
namespace http {
namespace server {
namespace status_strings {
const std::string ok =
"HTTP/1.0 200 OK\r\n";
const std::string created =
"HTTP/1.0 201 Created\r\n";
const std::string accepted =
"HTTP/1.0 202 Accepted\r\n";
const std::string no_content =
"HTTP/1.0 204 No Content\r\n";
const std::string multiple_choices =
"HTTP/1.0 300 Multiple Choices\r\n";
const std::string moved_permanently =
"HTTP/1.0 301 Moved Permanently\r\n";
const std::string moved_temporarily =
"HTTP/1.0 302 Moved Temporarily\r\n";
const std::string not_modified =
"HTTP/1.0 304 Not Modified\r\n";
const std::string bad_request =
"HTTP/1.0 400 Bad Request\r\n";
const std::string unauthorized =
"HTTP/1.0 401 Unauthorized\r\n";
const std::string forbidden =
"HTTP/1.0 403 Forbidden\r\n";
const std::string not_found =
"HTTP/1.0 404 Not Found\r\n";
const std::string internal_server_error =
"HTTP/1.0 500 Internal Server Error\r\n";
const std::string not_implemented =
"HTTP/1.0 501 Not Implemented\r\n";
const std::string bad_gateway =
"HTTP/1.0 502 Bad Gateway\r\n";
const std::string service_unavailable =
"HTTP/1.0 503 Service Unavailable\r\n";
boost::asio::const_buffer to_buffer(reply::status_type status)
{
switch (status)
{
case reply::ok:
return boost::asio::buffer(ok);
case reply::created:
return boost::asio::buffer(created);
case reply::accepted:
return boost::asio::buffer(accepted);
case reply::no_content:
return boost::asio::buffer(no_content);
case reply::multiple_choices:
return boost::asio::buffer(multiple_choices);
case reply::moved_permanently:
return boost::asio::buffer(moved_permanently);
case reply::moved_temporarily:
return boost::asio::buffer(moved_temporarily);
case reply::not_modified:
return boost::asio::buffer(not_modified);
case reply::bad_request:
return boost::asio::buffer(bad_request);
case reply::unauthorized:
return boost::asio::buffer(unauthorized);
case reply::forbidden:
return boost::asio::buffer(forbidden);
case reply::not_found:
return boost::asio::buffer(not_found);
case reply::internal_server_error:
return boost::asio::buffer(internal_server_error);
case reply::not_implemented:
return boost::asio::buffer(not_implemented);
case reply::bad_gateway:
return boost::asio::buffer(bad_gateway);
case reply::service_unavailable:
return boost::asio::buffer(service_unavailable);
default:
return boost::asio::buffer(internal_server_error);
}
}
} // namespace status_strings
namespace misc_strings {
const char name_value_separator[] = { ':', ' ' };
const char crlf[] = { '\r', '\n' };
} // namespace misc_strings
std::vector<boost::asio::const_buffer> reply::to_buffers()
{
std::vector<boost::asio::const_buffer> buffers;
buffers.push_back(status_strings::to_buffer(status));
for (std::size_t i = 0; i < headers.size(); ++i)
{
header& h = headers[i];
buffers.push_back(boost::asio::buffer(h.name));
buffers.push_back(boost::asio::buffer(misc_strings::name_value_separator));
buffers.push_back(boost::asio::buffer(h.value));
buffers.push_back(boost::asio::buffer(misc_strings::crlf));
}
buffers.push_back(boost::asio::buffer(misc_strings::crlf));
buffers.push_back(boost::asio::buffer(content));
return buffers;
}
namespace stock_replies {
const char ok[] = "";
const char created[] =
"<html>"
"<head><title>Created</title></head>"
"<body><h1>201 Created</h1></body>"
"</html>";
const char accepted[] =
"<html>"
"<head><title>Accepted</title></head>"
"<body><h1>202 Accepted</h1></body>"
"</html>";
const char no_content[] =
"<html>"
"<head><title>No Content</title></head>"
"<body><h1>204 Content</h1></body>"
"</html>";
const char multiple_choices[] =
"<html>"
"<head><title>Multiple Choices</title></head>"
"<body><h1>300 Multiple Choices</h1></body>"
"</html>";
const char moved_permanently[] =
"<html>"
"<head><title>Moved Permanently</title></head>"
"<body><h1>301 Moved Permanently</h1></body>"
"</html>";
const char moved_temporarily[] =
"<html>"
"<head><title>Moved Temporarily</title></head>"
"<body><h1>302 Moved Temporarily</h1></body>"
"</html>";
const char not_modified[] =
"<html>"
"<head><title>Not Modified</title></head>"
"<body><h1>304 Not Modified</h1></body>"
"</html>";
const char bad_request[] =
"<html>"
"<head><title>Bad Request</title></head>"
"<body><h1>400 Bad Request</h1></body>"
"</html>";
const char unauthorized[] =
"<html>"
"<head><title>Unauthorized</title></head>"
"<body><h1>401 Unauthorized</h1></body>"
"</html>";
const char forbidden[] =
"<html>"
"<head><title>Forbidden</title></head>"
"<body><h1>403 Forbidden</h1></body>"
"</html>";
const char not_found[] =
"<html>"
"<head><title>Not Found</title></head>"
"<body><h1>404 Not Found</h1></body>"
"</html>";
const char internal_server_error[] =
"<html>"
"<head><title>Internal Server Error</title></head>"
"<body><h1>500 Internal Server Error</h1></body>"
"</html>";
const char not_implemented[] =
"<html>"
"<head><title>Not Implemented</title></head>"
"<body><h1>501 Not Implemented</h1></body>"
"</html>";
const char bad_gateway[] =
"<html>"
"<head><title>Bad Gateway</title></head>"
"<body><h1>502 Bad Gateway</h1></body>"
"</html>";
const char service_unavailable[] =
"<html>"
"<head><title>Service Unavailable</title></head>"
"<body><h1>503 Service Unavailable</h1></body>"
"</html>";
std::string to_string(reply::status_type status)
{
switch (status)
{
case reply::ok:
return ok;
case reply::created:
return created;
case reply::accepted:
return accepted;
case reply::no_content:
return no_content;
case reply::multiple_choices:
return multiple_choices;
case reply::moved_permanently:
return moved_permanently;
case reply::moved_temporarily:
return moved_temporarily;
case reply::not_modified:
return not_modified;
case reply::bad_request:
return bad_request;
case reply::unauthorized:
return unauthorized;
case reply::forbidden:
return forbidden;
case reply::not_found:
return not_found;
case reply::internal_server_error:
return internal_server_error;
case reply::not_implemented:
return not_implemented;
case reply::bad_gateway:
return bad_gateway;
case reply::service_unavailable:
return service_unavailable;
default:
return internal_server_error;
}
}
} // namespace stock_replies
reply reply::stock_reply(reply::status_type status)
{
reply rep;
rep.status = status;
rep.content = stock_replies::to_string(status);
rep.headers.resize(2);
rep.headers[0].name = "Content-Length";
rep.headers[0].value = std::to_string(rep.content.size());
rep.headers[1].name = "Content-Type";
rep.headers[1].value = "text/html";
return rep;
}
} // namespace server
} // namespace http
+64
View File
@@ -0,0 +1,64 @@
//
// reply.hpp
// ~~~~~~~~~
//
// Copyright (c) 2003-2014 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef HTTP_REPLY_HPP
#define HTTP_REPLY_HPP
#include <string>
#include <vector>
#include <boost/asio.hpp>
#include "header.hpp"
namespace http {
namespace server {
/// A reply to be sent to a client.
struct reply
{
/// The status of the reply.
enum status_type
{
ok = 200,
created = 201,
accepted = 202,
no_content = 204,
multiple_choices = 300,
moved_permanently = 301,
moved_temporarily = 302,
not_modified = 304,
bad_request = 400,
unauthorized = 401,
forbidden = 403,
not_found = 404,
internal_server_error = 500,
not_implemented = 501,
bad_gateway = 502,
service_unavailable = 503
} status;
/// The headers to be included in the reply.
std::vector<header> headers;
/// The content to be sent in the reply.
std::string content;
/// Convert the reply into a vector of buffers. The buffers do not own the
/// underlying memory blocks, therefore the reply object must remain valid and
/// not be changed until the write operation has completed.
std::vector<boost::asio::const_buffer> to_buffers();
/// Get a stock reply.
static reply stock_reply(status_type status);
};
} // namespace server
} // namespace http
#endif // HTTP_REPLY_HPP
+34
View File
@@ -0,0 +1,34 @@
//
// request.hpp
// ~~~~~~~~~~~
//
// Copyright (c) 2003-2014 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef HTTP_REQUEST_HPP
#define HTTP_REQUEST_HPP
#include <string>
#include <vector>
#include "header.hpp"
namespace http {
namespace server {
/// A request received from a client.
struct request
{
std::string method;
std::string uri;
int http_version_major;
int http_version_minor;
std::vector<header> headers;
};
} // namespace server
} // namespace http
#endif // HTTP_REQUEST_HPP
@@ -0,0 +1,217 @@
//
// request_handler.cpp
// ~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2014 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include "request_handler.hpp"
#include <fstream>
#include <sstream>
#include <string>
#include <map>
#include "mime_types.hpp"
#include "reply.hpp"
#include "request.hpp"
#include "boost/algorithm/string.hpp"
#include "boost/property_tree/json_parser.hpp"
#include "../utf8utf16.h"
#include "../noun.h"
#include "../adjective.h"
#include "../verb.h"
#include "../other.h"
#include "../preposition.h"
namespace http {
namespace server {
request_handler::request_handler()
{
}
void request_handler::handle_request(const request& req, reply& rep)
{
// Decode url to path.
std::string request_path;
if (!url_decode(req.uri, request_path))
{
rep = reply::stock_reply(reply::bad_request);
return;
}
// Request path must be absolute and not contain "..".
if (request_path.empty() || request_path[0] != '/'
|| request_path.find("..") != std::wstring::npos)
{
rep = reply::stock_reply(reply::bad_request);
return;
}
// If path ends in slash (i.e. is a directory) then add "index.html".
if (request_path[request_path.size() - 1] == '/')
{
request_path += "index.html";
}
//Prepare request
if (request_path[0] == '/')
{
request_path = std::string(request_path.begin() + 1, request_path.end());
}
boost::to_lower(request_path);
std::wstring requestedStr = string_to_wstring(request_path);
/*
requestedStr = L"Вы запросили: " + requestedStr;
rep.content = UTF16to8(requestedStr.c_str());
rep.content = "<html><body>" + rep.content + "</body></html>";
*/
boost::property_tree::wptree propertyTree = PrepareReport(requestedStr);
std::wstringstream output_stream;
boost::property_tree::write_json(output_stream, propertyTree);
std::string outputJsonCode = wstring_to_string(output_stream.str());
rep.status = reply::ok;
rep.content = outputJsonCode;
rep.headers.resize(2);
rep.headers[0].name = "Content-Length";
rep.headers[0].value = std::to_string(rep.content.size());
rep.headers[1].name = "Content-Type";
rep.headers[1].value = "application/json; charset=utf-8";
}
bool request_handler::url_decode(const std::string& in, std::string& out)
{
out.clear();
out.reserve(in.size());
for (std::size_t i = 0; i < in.size(); ++i)
{
if (in[i] == '%')
{
if (i + 3 <= in.size())
{
int value = 0;
std::istringstream is(in.substr(i + 1, 2));
if (is >> std::hex >> value)
{
out += static_cast<char>(value);
i += 2;
}
else
{
return false;
}
}
else
{
return false;
}
}
else if (in[i] == '+')
{
out += ' ';
}
else
{
out += in[i];
}
}
return true;
}
void RemoveDuplicates(std::vector<std::shared_ptr<WordPairInterface>>& wordPairSet)
{
size_t i = 0;
while (i < wordPairSet.size())
{
size_t j = i + 1;
while (j < wordPairSet.size())
{
if (*wordPairSet[i] == *wordPairSet[j])
{
wordPairSet.erase(wordPairSet.begin() + j);
j--;
}
j++;
}
i++;
}
}
boost::property_tree::wptree PrepareReport(std::wstring request)
{
boost::property_tree::wptree result;
std::cout <<"PrepareReport" << std::endl;
if (request.size() < 2)
{
result.put(L"error", L"String is too short");
}
int id = 0;
std::vector<std::shared_ptr<WordPairInterface>> wordPairSet;
NN::RecognizeNoun(request, wordPairSet);
AJ::RecognizeAdjective(request, wordPairSet);
VB::RecognizeVerb(request, wordPairSet);
OT::RecognizeWord(request, wordPairSet);
PP::RecognizeWord(request, wordPairSet);
RemoveDuplicates(wordPairSet);
boost::property_tree::wptree wordArr;
for (auto& wordPair : wordPairSet)
{
boost::property_tree::wptree nounTree;
nounTree.put(L"id", id);
nounTree.put(L"type", wordPair->getType());
nounTree.put(L"word", wordPair->word().GetWord());
nounTree.put_child(L"properties", wordPair->word().GetProperties());
nounTree.put_child(L"modificators", wordPair->wordModificator().GetModificators());
nounTree.put_child(L"translations", wordPair->word().CreateTranslationPropertyTree());
wordArr.push_back(std::make_pair(L"", nounTree));
id++;
}
result.put_child(L"words", wordArr);
return result;
}
} // namespace server
} // namespace http
@@ -0,0 +1,48 @@
//
// request_handler.hpp
// ~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2014 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef HTTP_REQUEST_HANDLER_HPP
#define HTTP_REQUEST_HANDLER_HPP
#include <string>
#include "boost/property_tree/ptree.hpp"
namespace http {
namespace server {
struct reply;
struct request;
/// The common handler for all incoming requests.
class request_handler
{
public:
request_handler(const request_handler&) = delete;
request_handler& operator=(const request_handler&) = delete;
/// Construct with a directory containing files to be served.
explicit request_handler();
/// Handle a request and produce a reply.
void handle_request(const request& req, reply& rep);
private:
/// Perform URL-decoding on a string. Returns false if the encoding was
/// invalid.
static bool url_decode(const std::string& in, std::string& out);
};
boost::property_tree::wptree PrepareReport(std::wstring request);
} // namespace server
} // namespace http
#endif // HTTP_REQUEST_HANDLER_HPP
@@ -0,0 +1,315 @@
//
// request_parser.cpp
// ~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2014 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include "request_parser.hpp"
#include "request.hpp"
namespace http {
namespace server {
request_parser::request_parser()
: state_(method_start)
{
}
void request_parser::reset()
{
state_ = method_start;
}
request_parser::result_type request_parser::consume(request& req, char input)
{
switch (state_)
{
case method_start:
if (!is_char(input) || is_ctl(input) || is_tspecial(input))
{
return bad;
}
else
{
state_ = method;
req.method.push_back(input);
return indeterminate;
}
case method:
if (input == ' ')
{
state_ = uri;
return indeterminate;
}
else if (!is_char(input) || is_ctl(input) || is_tspecial(input))
{
return bad;
}
else
{
req.method.push_back(input);
return indeterminate;
}
case uri:
if (input == ' ')
{
state_ = http_version_h;
return indeterminate;
}
else if (is_ctl(input))
{
return bad;
}
else
{
req.uri.push_back(input);
return indeterminate;
}
case http_version_h:
if (input == 'H')
{
state_ = http_version_t_1;
return indeterminate;
}
else
{
return bad;
}
case http_version_t_1:
if (input == 'T')
{
state_ = http_version_t_2;
return indeterminate;
}
else
{
return bad;
}
case http_version_t_2:
if (input == 'T')
{
state_ = http_version_p;
return indeterminate;
}
else
{
return bad;
}
case http_version_p:
if (input == 'P')
{
state_ = http_version_slash;
return indeterminate;
}
else
{
return bad;
}
case http_version_slash:
if (input == '/')
{
req.http_version_major = 0;
req.http_version_minor = 0;
state_ = http_version_major_start;
return indeterminate;
}
else
{
return bad;
}
case http_version_major_start:
if (is_digit(input))
{
req.http_version_major = req.http_version_major * 10 + input - '0';
state_ = http_version_major;
return indeterminate;
}
else
{
return bad;
}
case http_version_major:
if (input == '.')
{
state_ = http_version_minor_start;
return indeterminate;
}
else if (is_digit(input))
{
req.http_version_major = req.http_version_major * 10 + input - '0';
return indeterminate;
}
else
{
return bad;
}
case http_version_minor_start:
if (is_digit(input))
{
req.http_version_minor = req.http_version_minor * 10 + input - '0';
state_ = http_version_minor;
return indeterminate;
}
else
{
return bad;
}
case http_version_minor:
if (input == '\r')
{
state_ = expecting_newline_1;
return indeterminate;
}
else if (is_digit(input))
{
req.http_version_minor = req.http_version_minor * 10 + input - '0';
return indeterminate;
}
else
{
return bad;
}
case expecting_newline_1:
if (input == '\n')
{
state_ = header_line_start;
return indeterminate;
}
else
{
return bad;
}
case header_line_start:
if (input == '\r')
{
state_ = expecting_newline_3;
return indeterminate;
}
else if (!req.headers.empty() && (input == ' ' || input == '\t'))
{
state_ = header_lws;
return indeterminate;
}
else if (!is_char(input) || is_ctl(input) || is_tspecial(input))
{
return bad;
}
else
{
req.headers.push_back(header());
req.headers.back().name.push_back(input);
state_ = header_name;
return indeterminate;
}
case header_lws:
if (input == '\r')
{
state_ = expecting_newline_2;
return indeterminate;
}
else if (input == ' ' || input == '\t')
{
return indeterminate;
}
else if (is_ctl(input))
{
return bad;
}
else
{
state_ = header_value;
req.headers.back().value.push_back(input);
return indeterminate;
}
case header_name:
if (input == ':')
{
state_ = space_before_header_value;
return indeterminate;
}
else if (!is_char(input) || is_ctl(input) || is_tspecial(input))
{
return bad;
}
else
{
req.headers.back().name.push_back(input);
return indeterminate;
}
case space_before_header_value:
if (input == ' ')
{
state_ = header_value;
return indeterminate;
}
else
{
return bad;
}
case header_value:
if (input == '\r')
{
state_ = expecting_newline_2;
return indeterminate;
}
else if (is_ctl(input))
{
return bad;
}
else
{
req.headers.back().value.push_back(input);
return indeterminate;
}
case expecting_newline_2:
if (input == '\n')
{
state_ = header_line_start;
return indeterminate;
}
else
{
return bad;
}
case expecting_newline_3:
return (input == '\n') ? good : bad;
default:
return bad;
}
}
bool request_parser::is_char(int c)
{
return c >= 0 && c <= 127;
}
bool request_parser::is_ctl(int c)
{
return (c >= 0 && c <= 31) || (c == 127);
}
bool request_parser::is_tspecial(int c)
{
switch (c)
{
case '(': case ')': case '<': case '>': case '@':
case ',': case ';': case ':': case '\\': case '"':
case '/': case '[': case ']': case '?': case '=':
case '{': case '}': case ' ': case '\t':
return true;
default:
return false;
}
}
bool request_parser::is_digit(int c)
{
return c >= '0' && c <= '9';
}
} // namespace server
} // namespace http
@@ -0,0 +1,96 @@
//
// request_parser.hpp
// ~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2014 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef HTTP_REQUEST_PARSER_HPP
#define HTTP_REQUEST_PARSER_HPP
#include <tuple>
namespace http {
namespace server {
struct request;
/// Parser for incoming requests.
class request_parser
{
public:
/// Construct ready to parse the request method.
request_parser();
/// Reset to initial parser state.
void reset();
/// Result of parse.
enum result_type { good, bad, indeterminate };
/// Parse some data. The enum return value is good when a complete request has
/// been parsed, bad if the data is invalid, indeterminate when more data is
/// required. The InputIterator return value indicates how much of the input
/// has been consumed.
template <typename InputIterator>
std::tuple<result_type, InputIterator> parse(request& req,
InputIterator begin, InputIterator end)
{
while (begin != end)
{
result_type result = consume(req, *begin++);
if (result == good || result == bad)
return std::make_tuple(result, begin);
}
return std::make_tuple(indeterminate, begin);
}
private:
/// Handle the next character of input.
result_type consume(request& req, char input);
/// Check if a byte is an HTTP character.
static bool is_char(int c);
/// Check if a byte is an HTTP control character.
static bool is_ctl(int c);
/// Check if a byte is defined as an HTTP tspecial character.
static bool is_tspecial(int c);
/// Check if a byte is a digit.
static bool is_digit(int c);
/// The current state of the parser.
enum state
{
method_start,
method,
uri,
http_version_h,
http_version_t_1,
http_version_t_2,
http_version_p,
http_version_slash,
http_version_major_start,
http_version_major,
http_version_minor_start,
http_version_minor,
expecting_newline_1,
header_line_start,
header_lws,
header_name,
space_before_header_value,
header_value,
expecting_newline_2,
expecting_newline_3
} state_;
};
} // namespace server
} // namespace http
#endif // HTTP_REQUEST_PARSER_HPP
+93
View File
@@ -0,0 +1,93 @@
//
// server.cpp
// ~~~~~~~~~~
//
// Copyright (c) 2003-2014 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include "server.hpp"
#include <signal.h>
#include <utility>
namespace http {
namespace server {
server::server(const std::string& address, const std::string& port)
: io_service_(),
signals_(io_service_),
acceptor_(io_service_),
connection_manager_(),
socket_(io_service_),
request_handler_()
{
// Register to handle the signals that indicate when the server should exit.
// It is safe to register for the same signal multiple times in a program,
// provided all registration for the specified signal is made through Asio.
signals_.add(SIGINT);
signals_.add(SIGTERM);
#if defined(SIGQUIT)
signals_.add(SIGQUIT);
#endif // defined(SIGQUIT)
do_await_stop();
// Open the acceptor with the option to reuse the address (i.e. SO_REUSEADDR).
boost::asio::ip::tcp::resolver resolver(io_service_);
boost::asio::ip::tcp::endpoint endpoint = *resolver.resolve({address, port});
acceptor_.open(endpoint.protocol());
acceptor_.set_option(boost::asio::ip::tcp::acceptor::reuse_address(true));
acceptor_.bind(endpoint);
acceptor_.listen();
do_accept();
}
void server::run()
{
// The io_service::run() call will block until all asynchronous operations
// have finished. While the server is running, there is always at least one
// asynchronous operation outstanding: the asynchronous accept call waiting
// for new incoming connections.
io_service_.run();
}
void server::do_accept()
{
acceptor_.async_accept(socket_,
[this](boost::system::error_code ec)
{
// Check whether the server was stopped by a signal before this
// completion handler had a chance to run.
if (!acceptor_.is_open())
{
return;
}
if (!ec)
{
connection_manager_.start(std::make_shared<connection>(
std::move(socket_), connection_manager_, request_handler_));
}
do_accept();
});
}
void server::do_await_stop()
{
signals_.async_wait(
[this](boost::system::error_code /*ec*/, int /*signo*/)
{
// The server is stopped by cancelling all outstanding asynchronous
// operations. Once all operations have finished the io_service::run()
// call will exit.
acceptor_.close();
connection_manager_.stop_all();
});
}
} // namespace server
} // namespace http
+66
View File
@@ -0,0 +1,66 @@
//
// server.hpp
// ~~~~~~~~~~
//
// Copyright (c) 2003-2014 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef HTTP_SERVER_HPP
#define HTTP_SERVER_HPP
#include <boost/asio.hpp>
#include <string>
#include "connection.hpp"
#include "connection_manager.hpp"
#include "request_handler.hpp"
namespace http {
namespace server {
/// The top-level class of the HTTP server.
class server
{
public:
server(const server&) = delete;
server& operator=(const server&) = delete;
/// Construct the server to listen on the specified TCP address and port, and
/// serve up files from the given directory.
explicit server(const std::string& address, const std::string& port);
/// Run the server's io_service loop.
void run();
private:
/// Perform an asynchronous accept operation.
void do_accept();
/// Wait for a request to stop the server.
void do_await_stop();
/// The io_service used to perform asynchronous operations.
boost::asio::io_service io_service_;
/// The signal_set is used to register for process termination notifications.
boost::asio::signal_set signals_;
/// Acceptor used to listen for incoming connections.
boost::asio::ip::tcp::acceptor acceptor_;
/// The connection manager which owns all live connections.
connection_manager connection_manager_;
/// The next socket to be accepted.
boost::asio::ip::tcp::socket socket_;
/// The handler for all incoming requests.
request_handler request_handler_;
};
} // namespace server
} // namespace http
#endif // HTTP_SERVER_HPP
+84
View File
@@ -0,0 +1,84 @@
CC=g++-4.8.3
CFLAGS=-Wall -O3 -std=gnu++11 -finput-charset=UTF-8 -fexec-charset=UTF-8
LDFLAGS= -lpthread -lrt -L/usr/local/lib
BoostPath=../../../boost_1_56_0
#======================================================
#====================== BOOST =========================
#======================================================
CFLAGS += -I$(BoostPath) -I/usr/local/include -I/home/devuser/workplace/mysql-connector-c++-1.1.4/driver
#thread
LOCAL_SRC_FILES := $(BoostPath)/libs/thread/src/pthread/thread.cpp
LOCAL_SRC_FILES += $(BoostPath)/libs/thread/src/pthread/once.cpp
#signals
LOCAL_SRC_FILES += $(BoostPath)/libs/signals/src/connection.cpp
LOCAL_SRC_FILES += $(BoostPath)/libs/signals/src/named_slot_map.cpp
LOCAL_SRC_FILES += $(BoostPath)/libs/signals/src/signal_base.cpp
LOCAL_SRC_FILES += $(BoostPath)/libs/signals/src/slot.cpp
LOCAL_SRC_FILES += $(BoostPath)/libs/signals/src/trackable.cpp
#system
LOCAL_SRC_FILES += $(BoostPath)/libs/system/src/error_code.cpp
#regex
LOCAL_SRC_FILES += $(BoostPath)/libs/regex/src/c_regex_traits.cpp
LOCAL_SRC_FILES += $(BoostPath)/libs/regex/src/cpp_regex_traits.cpp
LOCAL_SRC_FILES += $(BoostPath)/libs/regex/src/cregex.cpp
LOCAL_SRC_FILES += $(BoostPath)/libs/regex/src/fileiter.cpp
LOCAL_SRC_FILES += $(BoostPath)/libs/regex/src/icu.cpp
LOCAL_SRC_FILES += $(BoostPath)/libs/regex/src/instances.cpp
LOCAL_SRC_FILES += $(BoostPath)/libs/regex/src/posix_api.cpp
LOCAL_SRC_FILES += $(BoostPath)/libs/regex/src/regex.cpp
LOCAL_SRC_FILES += $(BoostPath)/libs/regex/src/regex_debug.cpp
LOCAL_SRC_FILES += $(BoostPath)/libs/regex/src/regex_raw_buffer.cpp
LOCAL_SRC_FILES += $(BoostPath)/libs/regex/src/regex_traits_defaults.cpp
LOCAL_SRC_FILES += $(BoostPath)/libs/regex/src/static_mutex.cpp
LOCAL_SRC_FILES += $(BoostPath)/libs/regex/src/usinstances.cpp
LOCAL_SRC_FILES += $(BoostPath)/libs/regex/src/w32_regex_traits.cpp
LOCAL_SRC_FILES += $(BoostPath)/libs/regex/src/wc_regex_traits.cpp
LOCAL_SRC_FILES += $(BoostPath)/libs/regex/src/wide_posix_api.cpp
LOCAL_SRC_FILES += $(BoostPath)/libs/regex/src/winstances.cpp
#date_time
LOCAL_SRC_FILES += $(BoostPath)/libs/date_time/src/gregorian/greg_month.cpp
LOCAL_SRC_FILES += $(BoostPath)/libs/date_time/src/gregorian/greg_weekday.cpp
LOCAL_SRC_FILES += $(BoostPath)/libs/date_time/src/gregorian/date_generators.cpp
#filesystem
LOCAL_SRC_FILES += $(BoostPath)/libs/filesystem/src/codecvt_error_category.cpp
LOCAL_SRC_FILES += $(BoostPath)/libs/filesystem/src/operations.cpp
LOCAL_SRC_FILES += $(BoostPath)/libs/filesystem/src/path.cpp
LOCAL_SRC_FILES += $(BoostPath)/libs/filesystem/src/path_traits.cpp
LOCAL_SRC_FILES += $(BoostPath)/libs/filesystem/src/portability.cpp
LOCAL_SRC_FILES += $(BoostPath)/libs/filesystem/src/unique_path.cpp
LOCAL_SRC_FILES += $(BoostPath)/libs/filesystem/src/utf8_codecvt_facet.cpp
LOCAL_SRC_FILES += $(BoostPath)/libs/filesystem/src/windows_file_codecvt.cpp
#======================================================
#====================== GAME ==========================
#======================================================
CFLAGS += -I../ntrip
LOCAL_SRC_FILES += ../http/connection.cpp
LOCAL_SRC_FILES += ../http/connection_manager.cpp
LOCAL_SRC_FILES += ../http/mime_types.cpp
LOCAL_SRC_FILES += ../http/reply.cpp
LOCAL_SRC_FILES += ../http/request_handler.cpp
LOCAL_SRC_FILES += ../http/request_parser.cpp
LOCAL_SRC_FILES += ../http/server.cpp
LOCAL_SRC_FILES += ../utf8utf16.cpp
LOCAL_SRC_FILES += ../noun.cpp
LOCAL_SRC_FILES += ../adjective.cpp
LOCAL_SRC_FILES += ../grammarCase.cpp
LOCAL_SRC_FILES += ../main.cpp
all:
$(CC) $(LOCAL_SRC_FILES) $(CFLAGS) $(LDFLAGS) -o rudict
+65
View File
@@ -0,0 +1,65 @@
#include <iostream>
#include <string>
#include "boost/asio.hpp"
#include "http/server.hpp"
#include "noun.h"
#include "adjective.h"
#include "verb.h"
#include "other.h"
#include "preposition.h"
int main()
{
NN::SetupDeclentionMap();
NN::LoadNounDeclencionCaseTable();
NN::LoadFrequentWordSet();
NN::FillDivisionCaseMaps();
NN::CalculatePluralForm();
AJ::LoadAdjectiveDeclencionCaseTable();
AJ::LoadFrequentAdjectiveSet();
AJ::FillDivisionCaseMaps();
AJ::SetupDeclentionMap();
VB::LoadVerbConjunctionTable();
VB::LoadFrequentWordSet();
OT::LoadWordSet("frequent_other_2000.txt");
OT::LoadWordSet("pronouns.txt");
OT::LoadWordSet("numerals.txt");
PP::LoadWordSet("preposition.txt");
try
{
// Initialise the server.
http::server::server s("0.0.0.0", "8843");
// Run the server until stopped.
s.run();
}
catch (std::exception& e)
{
std::cerr << "exception: " << e.what() << "\n";
}
/*
std::wstring s(L"уродам");
std::vector<NounStruct> recognizedResultArr = RecognizeNoun(s);
for (auto& i : recognizedResultArr)
{
std::wcout << i.noun << L"\n";
}*/
system("pause");
return 0;
}
File diff suppressed because it is too large. Load diff
+192
View File
@@ -0,0 +1,192 @@
#ifndef NOUN_H_INCLUDED
#define NOUN_H_INCLUDED
#include <string>
#include <map>
#include <set>
#include <vector>
#include <fstream>
#include "boost/algorithm/string.hpp"
#include "grammarCase.h"
namespace NN
{
struct NounRecord : public WordHolder
{
public:
NounGender getGender() const;
bool getHaveSingleForm() const;
bool getHaveMultipleForm() const;
bool getHaveStandardMultipleForm() const;
bool getHaveStandardMultipleFormWithMissingLastVowel() const;
bool getHaveStandardMultipleFormEnding() const;
bool getHaveAlternativeMultipleFormEnding() const;
std::wstring getSpecialMultipleForm() const;
bool getCanBeAnimate() const;
bool getCanBeInanimate() const;
void SetAllFields();
void SetAllFields(const std::vector<std::wstring>& lineArr);
std::set<std::wstring> precalculatedNominativePluralSet;
NounRecord();
NounRecord(std::wstring line);
};
enum NounDeclencion
{
FIRST_A_IFORM_INANIMATE = 0,
FIRST_A_IFORM_ANIMATE,
FIRST_A_UFORM_INANIMATE,
FIRST_A_UFORM_ANIMATE,
FIRST_YA_FORM_INANIMATE,
FIRST_YA_FORM_ANIMATE,
SECOND_MALE_IFORM_INANIMATE,
SECOND_MALE_IFORM_ANIMATE,
SECOND_MALE_UFORM_INANIMATE,
SECOND_MALE_UFORM_ANIMATE,
SECOND_MALE_SSFORM_INANIMATE,
SECOND_MALE_SSFORM_ANIMATE,
SECOND_I_SHORT_INANIMATE,
SECOND_I_SHORT_ANIMATE,
SECOND_NEUTRAL_E_FORM,
SECOND_NEUTRAL_O_FORM,
THIRD_FORM_INANIMATE,
THIRD_FORM_ANIMATE,
};
extern std::vector<NounRecord> NounRecordArr;
struct NounDeclencionCaseTableRecord
{
NounDeclencion nounDeclencion;
std::vector<GrammaticalTableRecord> grammaticalCaseTable;
};
extern std::vector<NounDeclencionCaseTableRecord> nounDeclencionCaseTable;
NounDeclencion WStringToNounDeclencion(std::wstring str);
typedef std::tuple <
NounDeclencion,
NounCount,
NounGrammaticalCase
> NounTuple;
typedef std::set<std::wstring> StringSet;
struct NounEndingDivision
{
std::wstring base;
std::wstring ending;
enum DivisionCase
{
DC_COMMON = 0,
DC_LOST_VOWEL_O,
DC_LOST_VOWEL_E
} divisionCase;
bool operator<(const NounEndingDivision& other) const;
};
std::vector<std::wstring> GetAllNounEndingArr();
std::set<std::wstring> getPluralForm(NounRecord nounRecord);
bool NounIsInDictionary(std::wstring nounNominative);
bool NounPluralFormIsInDictionary(std::wstring nounNominativePlural);
NounRecord GetNounRecordFromDictionary(std::wstring nounNominative);
NounRecord GetNounRecordFromDictionary_ByPluralForm(std::wstring nounNominativePlural);
bool charIsMissingVowelSoftenerConsolant(wchar_t c);
struct NounStruct : public WordModificatorInterface
{
private:
/*
NounGrammaticalCase nounGrammaticalCase;
NounCount nounCount;
bool animated;
*/
public:
NounStruct();
NounStruct(NounGrammaticalCase iNounGrammaticalCase, NounCount iNounCount, bool iAnimated);
//bool operator<(const NounStruct& other) const;
//boost::property_tree::wptree GetModificators() const;
};
struct NounPair : public WordPairInterface
{
protected:
NounStruct nounModificator;
NounRecord noun;
public:
NounPair();
NounPair(NounStruct iNounModificator, NounRecord iNoun);
virtual const WordModificatorInterface& wordModificator() const;
virtual const WordHolder& word() const;
virtual std::wstring getType();
};
std::set<NounEndingDivision> getPossibleNounEndingDivisionSet(std::wstring noun);
std::vector<NounTuple> GetPossibleNounTupleArr(std::wstring nounEnding);
std::set<std::wstring> GetNounNoninative(std::wstring nounBase, NounDeclencion nounDeclencion, NounCount nounCount);
std::wstring GetNounNoninativeSpecialPluralA(std::wstring nounBase, NounDeclencion nounDeclencion);
void SetupDeclentionMap();
bool NounFitsDeclention(NounRecord nounRecord, NounTuple nounTuple);
bool IsDeclencionSecondType(NounDeclencion nounDeclention);
bool IsDeclencionAnimated(NounDeclencion nounDeclention);
void FillDivisionCaseMaps();
void RecognizeNoun(std::wstring noun, std::vector<std::shared_ptr<WordPairInterface>>& wordPairArr);
NounDeclencion CalculateNounDeclention(NounRecord nounRecord);
void CalculatePluralForm();
void LoadFrequentWordSet();
void LoadNounDeclencionCaseTable();
} //namespace NN
#endif //NOUN_H_INCLUDED
+136
View File
@@ -0,0 +1,136 @@
#include "other.h"
#include <iostream> //Xperimental -- for debug only
#include "utf8utf16.h"
#include "boost/regex.hpp"
#include "boost/algorithm/string/regex.hpp"
namespace OT
{
std::vector<OtherWordRecord> OtherWordRecordArr;
OtherWordRecord::OtherWordRecord()
{
SetAllFields();
}
OtherWordRecord::OtherWordRecord(std::wstring line)
{
std::vector<std::wstring> lineArr;
boost::split_regex(lineArr, line, boost::wregex(L" "));
SetWord(lineArr[1]);
SetAllFields(lineArr);
FillTranslationUnit(lineArr, 3);
}
std::wstring OtherWordRecord::getType() const
{
return properties.get<std::wstring>(L"type");
}
void OtherWordRecord::SetAllFields()
{
properties.put(L"type", "");
}
void OtherWordRecord::SetAllFields(const std::vector<std::wstring>& lineArr)
{
properties.put(L"type", lineArr[2]);
}
/*
boost::property_tree::wptree OtherWordModificator::GetModificators() const
{
return boost::property_tree::wptree();
}
*/
OtherWordPair::OtherWordPair()
{
}
OtherWordPair::OtherWordPair(OtherWordModificator iModificator, OtherWordRecord iWordRecord)
: modificator(iModificator)
, wordRecord(iWordRecord)
{
}
const WordModificatorInterface& OtherWordPair::wordModificator() const
{
return modificator;
}
const WordHolder& OtherWordPair::word() const
{
return wordRecord;
}
std::wstring OtherWordPair::getType()
{
return L"other";
}
void RecognizeWord(std::wstring word, std::vector<std::shared_ptr<WordPairInterface>>& wordPair)
{
for (auto& wordRecord : OtherWordRecordArr)
{
if (wordRecord.GetWord() == word)
{
wordPair.push_back(std::shared_ptr<WordPairInterface>(new OtherWordPair(OtherWordModificator(), wordRecord)));
}
}
}
void LoadWordSet(std::string filename)
{
#ifdef _WIN32
std::ifstream f("C:/Workplace/ChineseJournal/rudict/" + filename);
#else
std::ifstream f("/home/devuser/workplace/rudict/" + filename);
#endif
std::string line;
std::wstring wline;
if (f.is_open())
{
getline(f, line); //Skip one line
std::cout << "File found!" << std::endl;
while (getline(f, line))
{
wline = string_to_wstring(line);
OtherWordRecord otherWordRecord(wline);
OtherWordRecordArr.push_back(otherWordRecord);
}
f.close();
}
else
{
std::cout << "file not found!" << std::endl;
}
}
}
+67
View File
@@ -0,0 +1,67 @@
#ifndef OTHER_H_INCLUDED
#define OTHER_H_INCLUDED
#include <string>
#include <map>
#include <set>
#include <vector>
#include <fstream>
#include "boost/algorithm/string.hpp"
#include "grammarCase.h"
namespace OT
{
struct OtherWordRecord : public WordHolder
{
std::wstring getType() const;
void SetAllFields();
void SetAllFields(const std::vector<std::wstring>& lineArr);
OtherWordRecord();
OtherWordRecord(std::wstring line);
};
class OtherWordModificator : public WordModificatorInterface
{
//public:
// virtual boost::property_tree::wptree GetModificators() const;
};
struct OtherWordPair : public WordPairInterface
{
protected:
OtherWordModificator modificator;
OtherWordRecord wordRecord;
public:
OtherWordPair();
OtherWordPair(OtherWordModificator iModificator, OtherWordRecord iWordRecord);
virtual const WordModificatorInterface& wordModificator() const;
virtual const WordHolder& word() const;
virtual std::wstring getType();
};
extern std::vector<OtherWordRecord> OtherWordRecordArr;
void RecognizeWord(std::wstring word, std::vector<std::shared_ptr<WordPairInterface>>& wordPair);
void LoadWordSet(std::string filename);
}
#endif //OTHER_H_INCLUDED
+169
View File
@@ -0,0 +1,169 @@
#include "preposition.h"
#include <iostream> //Xperimental -- for debug only
#include "utf8utf16.h"
#include "boost/regex.hpp"
#include "boost/algorithm/string/regex.hpp"
namespace PP
{
std::vector<PrepositionRecord> PrepositionRecordArr;
PrepositionRecord::PrepositionRecord()
{
SetAllFields();
}
PrepositionRecord::PrepositionRecord(std::wstring line)
{
std::vector<std::wstring> lineArr;
boost::split_regex(lineArr, line, boost::wregex(L" "));
SetWord(lineArr[1]);
SetAllFields(lineArr);
FillTranslationUnit(lineArr, 7);
}
bool PrepositionRecord::getAvailableForGenitive() const
{
return properties.get<bool>(L"availableForGenitive");
}
bool PrepositionRecord::getAvailableForDative() const
{
return properties.get<bool>(L"availableForDative");
}
bool PrepositionRecord::getAvailableForAccusative() const
{
return properties.get<bool>(L"availableForAccusative");
}
bool PrepositionRecord::getAvailableForInstrumental() const
{
return properties.get<bool>(L"availableForInstrumental");
}
bool PrepositionRecord::getAvailableForPrepositional() const
{
return properties.get<bool>(L"availableForPrepositional");
}
void PrepositionRecord::SetAllFields()
{
properties.put(L"availableForGenitive", L"");
properties.put(L"availableForDative", L"");
properties.put(L"availableForAccusative", L"");
properties.put(L"availableForInstrumental", L"");
properties.put(L"availableForPrepositional", L"");
}
void PrepositionRecord::SetAllFields(const std::vector<std::wstring>& lineArr)
{
properties.put(L"availableForGenitive", lineArr[2] == L"1" ? true : false);
properties.put(L"availableForDative", lineArr[3] == L"1" ? true : false);
properties.put(L"availableForAccusative", lineArr[4] == L"1" ? true : false);
properties.put(L"availableForInstrumental", lineArr[5] == L"1" ? true : false);
properties.put(L"availableForPrepositional", lineArr[6] == L"1" ? true : false);
}
/*
boost::property_tree::wptree PrepositionModificator::GetModificators() const
{
return boost::property_tree::wptree();
}*/
PrepositionPair::PrepositionPair()
{
}
PrepositionPair::PrepositionPair(PrepositionModificator iModificator, PrepositionRecord iWordRecord)
: modificator(iModificator)
, wordRecord(iWordRecord)
{
}
const WordModificatorInterface& PrepositionPair::wordModificator() const
{
return modificator;
}
const WordHolder& PrepositionPair::word() const
{
return wordRecord;
}
std::wstring PrepositionPair::getType()
{
return L"preposition";
}
void RecognizeWord(std::wstring word, std::vector<std::shared_ptr<WordPairInterface>>& wordPair)
{
std::vector<std::shared_ptr<PrepositionPair>> result;
for (auto& wordRecord : PrepositionRecordArr)
{
if (wordRecord.GetWord() == word)
{
wordPair.push_back(std::shared_ptr<WordPairInterface>(new PrepositionPair(PrepositionModificator(), wordRecord)));
}
}
}
void LoadWordSet(std::string filename)
{
#ifdef _WIN32
std::ifstream f("C:/Workplace/ChineseJournal/rudict/" + filename);
#else
std::ifstream f("/home/devuser/workplace/rudict/" + filename);
#endif
std::string line;
std::wstring wline;
if (f.is_open())
{
getline(f, line); //Skip one line
std::cout << "File found!" << std::endl;
while (getline(f, line))
{
wline = string_to_wstring(line);
PrepositionRecord prepositionRecord(wline);
PrepositionRecordArr.push_back(prepositionRecord);
}
f.close();
}
else
{
std::cout << "file not found!" << std::endl;
}
}
}
+70
View File
@@ -0,0 +1,70 @@
#ifndef PREPOSITION_H_INCLUDED
#define PREPOSITION_H_INCLUDED
#include <string>
#include <map>
#include <set>
#include <vector>
#include <fstream>
#include "boost/algorithm/string.hpp"
#include "grammarCase.h"
namespace PP
{
struct PrepositionRecord : public WordHolder
{
bool getAvailableForGenitive() const;
bool getAvailableForDative() const;
bool getAvailableForAccusative() const;
bool getAvailableForInstrumental() const;
bool getAvailableForPrepositional() const;
void SetAllFields();
void SetAllFields(const std::vector<std::wstring>& lineArr);
PrepositionRecord();
PrepositionRecord(std::wstring line);
};
class PrepositionModificator : public WordModificatorInterface
{
};
struct PrepositionPair : public WordPairInterface
{
protected:
PrepositionModificator modificator;
PrepositionRecord wordRecord;
public:
PrepositionPair();
PrepositionPair(PrepositionModificator iModificator, PrepositionRecord iWordRecord);
virtual const WordModificatorInterface& wordModificator() const;
virtual const WordHolder& word() const;
virtual std::wstring getType();
};
extern std::vector<PrepositionRecord> PrepositionRecordArr;
void RecognizeWord(std::wstring word, std::vector<std::shared_ptr<WordPairInterface>>& wordPair);
void LoadWordSet(std::string filename);
}
#endif //PREPOSITION_H_INCLUDED
+110
View File
@@ -0,0 +1,110 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{6AAE716F-0F7C-4A75-94C9-83C86F18BEA3}</ProjectGuid>
<RootNamespace>rudict</RootNamespace>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v120</PlatformToolset>
<CharacterSet>NotSet</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v120</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>NotSet</CharacterSet>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup />
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<SDLCheck>true</SDLCheck>
<AdditionalIncludeDirectories>C:/Workplace/boost_1_57_0</AdditionalIncludeDirectories>
<PreprocessorDefinitions>_SCL_SECURE_NO_WARNINGS;_WIN32_WINNT=0x0501;_MBCS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalLibraryDirectories>C:/Workplace/boost_1_57_0/stage/lib</AdditionalLibraryDirectories>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
<AdditionalIncludeDirectories>C:/Workplace/boost_1_57_0</AdditionalIncludeDirectories>
<PreprocessorDefinitions>_SCL_SECURE_NO_WARNINGS;_WIN32_WINNT=0x0501;_MBCS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<AdditionalLibraryDirectories>C:/Workplace/boost_1_57_0/stage/lib</AdditionalLibraryDirectories>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="adjective.cpp" />
<ClCompile Include="grammarCase.cpp" />
<ClCompile Include="http\connection.cpp" />
<ClCompile Include="http\connection_manager.cpp" />
<ClCompile Include="http\mime_types.cpp" />
<ClCompile Include="http\reply.cpp" />
<ClCompile Include="http\request_handler.cpp" />
<ClCompile Include="http\request_parser.cpp" />
<ClCompile Include="http\server.cpp" />
<ClCompile Include="main.cpp" />
<ClCompile Include="noun.cpp" />
<ClCompile Include="other.cpp" />
<ClCompile Include="preposition.cpp" />
<ClCompile Include="utf8utf16.cpp" />
<ClCompile Include="verb.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="adjective.h" />
<ClInclude Include="grammarCase.h" />
<ClInclude Include="http\connection.hpp" />
<ClInclude Include="http\connection_manager.hpp" />
<ClInclude Include="http\header.hpp" />
<ClInclude Include="http\mime_types.hpp" />
<ClInclude Include="http\reply.hpp" />
<ClInclude Include="http\request.hpp" />
<ClInclude Include="http\request_handler.hpp" />
<ClInclude Include="http\request_parser.hpp" />
<ClInclude Include="http\server.hpp" />
<ClInclude Include="noun.h" />
<ClInclude Include="other.h" />
<ClInclude Include="preposition.h" />
<ClInclude Include="utf8utf16.h" />
<ClInclude Include="verb.h" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
@@ -0,0 +1,117 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Source Files">
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
</Filter>
<Filter Include="Header Files">
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
<Extensions>h;hh;hpp;hxx;hm;inl;inc;xsd</Extensions>
</Filter>
<Filter Include="Resource Files">
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
</Filter>
<Filter Include="Source Files\http">
<UniqueIdentifier>{4536720e-6df6-4fd1-b1c8-2f89090479f7}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="main.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="noun.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="http\connection.cpp">
<Filter>Source Files\http</Filter>
</ClCompile>
<ClCompile Include="http\connection_manager.cpp">
<Filter>Source Files\http</Filter>
</ClCompile>
<ClCompile Include="http\mime_types.cpp">
<Filter>Source Files\http</Filter>
</ClCompile>
<ClCompile Include="http\reply.cpp">
<Filter>Source Files\http</Filter>
</ClCompile>
<ClCompile Include="http\request_handler.cpp">
<Filter>Source Files\http</Filter>
</ClCompile>
<ClCompile Include="http\request_parser.cpp">
<Filter>Source Files\http</Filter>
</ClCompile>
<ClCompile Include="http\server.cpp">
<Filter>Source Files\http</Filter>
</ClCompile>
<ClCompile Include="utf8utf16.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="adjective.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="grammarCase.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="verb.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="other.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="preposition.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="noun.h">
<Filter>Source Files</Filter>
</ClInclude>
<ClInclude Include="http\connection.hpp">
<Filter>Source Files\http</Filter>
</ClInclude>
<ClInclude Include="http\connection_manager.hpp">
<Filter>Source Files\http</Filter>
</ClInclude>
<ClInclude Include="http\header.hpp">
<Filter>Source Files\http</Filter>
</ClInclude>
<ClInclude Include="http\mime_types.hpp">
<Filter>Source Files\http</Filter>
</ClInclude>
<ClInclude Include="http\reply.hpp">
<Filter>Source Files\http</Filter>
</ClInclude>
<ClInclude Include="http\request.hpp">
<Filter>Source Files\http</Filter>
</ClInclude>
<ClInclude Include="http\request_handler.hpp">
<Filter>Source Files\http</Filter>
</ClInclude>
<ClInclude Include="http\request_parser.hpp">
<Filter>Source Files\http</Filter>
</ClInclude>
<ClInclude Include="http\server.hpp">
<Filter>Source Files\http</Filter>
</ClInclude>
<ClInclude Include="utf8utf16.h">
<Filter>Source Files</Filter>
</ClInclude>
<ClInclude Include="adjective.h">
<Filter>Source Files</Filter>
</ClInclude>
<ClInclude Include="grammarCase.h">
<Filter>Source Files</Filter>
</ClInclude>
<ClInclude Include="verb.h">
<Filter>Source Files</Filter>
</ClInclude>
<ClInclude Include="other.h">
<Filter>Source Files</Filter>
</ClInclude>
<ClInclude Include="preposition.h">
<Filter>Source Files</Filter>
</ClInclude>
</ItemGroup>
</Project>
+95
View File
@@ -0,0 +1,95 @@
#include "utf8utf16.h"
#include <string>
#include <boost/locale.hpp>
#include <locale>
std::string wstring_to_string(std::wstring in)
{
/*
std::string out;
unsigned int codepoint = 0;
for (in; *in != 0; ++in)
{
if (*in >= 0xd800 && *in <= 0xdbff)
codepoint = ((*in - 0xd800) << 10) + 0x10000;
else
{
if (*in >= 0xdc00 && *in <= 0xdfff)
codepoint |= *in - 0xdc00;
else
codepoint = *in;
if (codepoint <= 0x7f)
out.append(1, static_cast<char>(codepoint));
else if (codepoint <= 0x7ff)
{
out.append(1, static_cast<char>(0xc0 | ((codepoint >> 6) & 0x1f)));
out.append(1, static_cast<char>(0x80 | (codepoint & 0x3f)));
}
else if (codepoint <= 0xffff)
{
out.append(1, static_cast<char>(0xe0 | ((codepoint >> 12) & 0x0f)));
out.append(1, static_cast<char>(0x80 | ((codepoint >> 6) & 0x3f)));
out.append(1, static_cast<char>(0x80 | (codepoint & 0x3f)));
}
else
{
out.append(1, static_cast<char>(0xf0 | ((codepoint >> 18) & 0x07)));
out.append(1, static_cast<char>(0x80 | ((codepoint >> 12) & 0x3f)));
out.append(1, static_cast<char>(0x80 | ((codepoint >> 6) & 0x3f)));
out.append(1, static_cast<char>(0x80 | (codepoint & 0x3f)));
}
codepoint = 0;
}
}
return out;*/
std::string out = boost::locale::conv::utf_to_utf<char>(in);
return out;
}
std::wstring string_to_wstring(std::string in)
{
/*
std::wstring out;
if (in == NULL)
return out;
unsigned int codepoint;
while (*in != 0)
{
unsigned char ch = static_cast<unsigned char>(*in);
if (ch <= 0x7f)
codepoint = ch;
else if (ch <= 0xbf)
codepoint = (codepoint << 6) | (ch & 0x3f);
else if (ch <= 0xdf)
codepoint = ch & 0x1f;
else if (ch <= 0xef)
codepoint = ch & 0x0f;
else
codepoint = ch & 0x07;
++in;
if (((*in & 0xc0) != 0x80) && (codepoint <= 0x10ffff))
{
if (codepoint > 0xffff)
{
out.append(1, static_cast<wchar_t>(0xd800 + (codepoint >> 10)));
out.append(1, static_cast<wchar_t>(0xdc00 + (codepoint & 0x03ff)));
}
else if (codepoint < 0xd800 || codepoint >= 0xe000)
out.append(1, static_cast<wchar_t>(codepoint));
}
}
return out;
*/
std::wstring out = boost::locale::conv::utf_to_utf<wchar_t>(in);
return out;
}
+18
View File
@@ -0,0 +1,18 @@
#ifndef UTF8UTF16_H_INCLUDED
#define UTF8UTF16_H_INCLUDED
#include <iostream>
#include <stdexcept>
#include <vector>
#include <string>
#include <cstring>
#include <locale>
std::string wstring_to_string(std::wstring in);
std::wstring string_to_wstring(std::string in);
#endif //UTF8UTF16_H_INCLUDED
+625
View File
@@ -0,0 +1,625 @@
#include "verb.h"
#include <iostream> //Xperimental -- for debug only
#include "utf8utf16.h"
#include "boost/regex.hpp"
#include "boost/algorithm/string/regex.hpp"
namespace VB
{
std::vector<VerbRecord> VerbRecordArr;
std::vector<VerbParamsTableRecord> VerbParamsTable;
VerbRecord::VerbRecord()
{
SetAllFields();
}
VerbRecord::VerbRecord(std::wstring line)
{
std::vector<std::wstring> lineArr;
boost::split_regex(lineArr, line, boost::wregex(L" "));
SetWord(lineArr[1]);
SetAllFields(lineArr);
FillTranslationUnit(lineArr, 6);
}
bool VerbRecord::getCanBePrefixed() const
{
return properties.get<bool>(L"canBePrefixed");
}
bool VerbRecord::getCanBeNotPrefixed() const
{
return properties.get<bool>(L"canBeNotPrefixed");
}
bool VerbRecord::getCanBePerfect() const
{
return properties.get<bool>(L"canBePerfect");
}
bool VerbRecord::getCanBeImperfect() const
{
return properties.get<bool>(L"canBeImperfect");
}
void VerbRecord::SetAllFields()
{
properties.put(L"canBePrefixed", false);
properties.put(L"canBeNotPrefixed", false);
properties.put(L"canBePerfect", false);
properties.put(L"canBeImperfect", false);
}
void VerbRecord::SetAllFields(const std::vector<std::wstring>& lineArr)
{
properties.put(L"canBePrefixed", lineArr[2] == L"1" ? true : false);
properties.put(L"canBeNotPrefixed", lineArr[3] == L"1" ? true : false);
properties.put(L"canBePerfect", lineArr[4] == L"1" ? true : false);
properties.put(L"canBeImperfect", lineArr[5] == L"1" ? true : false);
}
VerbStruct::VerbStruct()
{
}
VerbStruct::VerbStruct(VerbParams iVerbParams, std::wstring iSelfEnding)
//: verbParams(verbParams)
//, selfEnding(iSelfEnding)
{
modificatorTree.put(L"selfEnding", iSelfEnding);
modificatorTree.put(L"verbParams", VB::VerbParamsToWString(iVerbParams));
}
/*
boost::property_tree::wptree VerbStruct::GetModificators() const
{
boost::property_tree::wptree result;
result.put(L"selfEnding", selfEnding);
result.put(L"verbParams", VB::VerbParamsToWString(verbParams));
return result;
}
*/
/*
struct VerbPair : public WordPairInterface
{
protected:
VerbStruct modificator;
VerbRecord wordRecord;
public:
*/
VerbPair::VerbPair()
{
}
VerbPair::VerbPair(VerbStruct iModificator, VerbRecord iWordRecord)
: modificator(iModificator)
, wordRecord(iWordRecord)
{
}
const WordModificatorInterface& VerbPair::wordModificator() const
{
return modificator;
}
const WordHolder& VerbPair::word() const
{
return wordRecord;
}
std::wstring VerbPair::getType()
{
return L"verb";
}
/*
bool VerbStruct::operator<(const VerbStruct& v) const
{
if (verbParams != v.verbParams)
{
return verbParams < v.verbParams;
}
else
{
if (selfEnding != v.selfEnding)
{
return selfEnding < v.selfEnding;
}
else
{
return verbRecord < v.verbRecord;
}
}
}*/
VerbParams WStringToVerbParams(std::wstring str)
{
if (str == L"VP_INFINITIVE")
{
return VP_INFINITIVE;
}
else if (str == L"VP_PAST_MALE_SINGULAR")
{
return VP_PAST_MALE_SINGULAR;
}
else if (str == L"VP_PAST_FEMALE_SINGULAR")
{
return VP_PAST_FEMALE_SINGULAR;
}
else if (str == L"VP_PAST_NEUTER_SINGULAR")
{
return VP_PAST_NEUTER_SINGULAR;
}
else if (str == L"VP_PAST_PLURAL")
{
return VP_PAST_PLURAL;
}
else if (str == L"VP_PRESENT_FIRSTPERSON_SINGULAR")
{
return VP_PRESENT_FIRSTPERSON_SINGULAR;
}
else if (str == L"VP_PRESENT_SECONDPERSON_SINGULAR")
{
return VP_PRESENT_SECONDPERSON_SINGULAR;
}
else if (str == L"VP_PRESENT_THIRDPERSON_SINGULAR")
{
return VP_PRESENT_THIRDPERSON_SINGULAR;
}
else if (str == L"VP_PRESENT_FIRSTPERSON_PLURAL")
{
return VP_PRESENT_FIRSTPERSON_PLURAL;
}
else if (str == L"VP_PRESENT_SECONDPERSON_PLURAL")
{
return VP_PRESENT_SECONDPERSON_PLURAL;
}
else if (str == L"VP_PRESENT_THIRDPERSON_PLURAL")
{
return VP_PRESENT_THIRDPERSON_PLURAL;
}
std::cout << "Error in WStringToVerbParams" << std::endl;
return VP_INFINITIVE;
}
std::wstring VerbParamsToWString(VerbParams verbParams)
{
if (verbParams == VP_INFINITIVE)
{
return L"VP_INFINITIVE";
}
else if (verbParams == VP_PAST_MALE_SINGULAR)
{
return L"VP_PAST_MALE_SINGULAR";
}
else if (verbParams == VP_PAST_FEMALE_SINGULAR)
{
return L"VP_PAST_FEMALE_SINGULAR";
}
else if (verbParams == VP_PAST_NEUTER_SINGULAR)
{
return L"VP_PAST_NEUTER_SINGULAR";
}
else if (verbParams == VP_PAST_PLURAL)
{
return L"VP_PAST_PLURAL";
}
else if (verbParams == VP_PRESENT_FIRSTPERSON_SINGULAR)
{
return L"VP_PRESENT_FIRSTPERSON_SINGULAR";
}
else if (verbParams == VP_PRESENT_SECONDPERSON_SINGULAR)
{
return L"VP_PRESENT_SECONDPERSON_SINGULAR";
}
else if (verbParams == VP_PRESENT_THIRDPERSON_SINGULAR)
{
return L"VP_PRESENT_THIRDPERSON_SINGULAR";
}
else if (verbParams == VP_PRESENT_FIRSTPERSON_PLURAL)
{
return L"VP_PRESENT_FIRSTPERSON_PLURAL";
}
else if (verbParams == VP_PRESENT_SECONDPERSON_PLURAL)
{
return L"VP_PRESENT_SECONDPERSON_PLURAL";
}
else if (verbParams == VP_PRESENT_THIRDPERSON_PLURAL)
{
return L"VP_PRESENT_THIRDPERSON_PLURAL";
}
std::cout << "Error in VerbParamsToWString" << std::endl;
return L"";
}
VerbConjunction WStringToVerbConjunction(std::wstring str)
{
if (str == L"VC_FIRST_ET")
{
return VC_FIRST_ET;
}
else if (str == L"VC_FIRST_AT")
{
return VC_FIRST_AT;
}
else if (str == L"VC_FIRST_OT")
{
return VC_FIRST_OT;
}
else if (str == L"VC_FIRST_IT")
{
return VC_FIRST_IT;
}
else if (str == L"VC_FIRST_YT")
{
return VC_FIRST_YT;
}
else if (str == L"VC_FIRST_YAT")
{
return VC_FIRST_YAT;
}
else if (str == L"VC_SECOND_IT")
{
return VC_SECOND_IT;
}
else if (str == L"VC_SECOND_ET")
{
return VC_SECOND_ET;
}
else if (str == L"VC_SECOND_AT")
{
return VC_SECOND_AT;
}
std::cout << "Error in WStringToVerbConjunction" << std::endl;
return VC_FIRST_ET;
}
bool VerbIsInDictionary(std::wstring verbInfinitive)
{
for (auto& verb : VerbRecordArr)
{
if (verb.GetWord() == verbInfinitive)
{
return true;
}
}
return false;
}
VerbRecord GetVerbRecordFromDictionary(std::wstring verbInfinitive)
{
for (auto& verb : VerbRecordArr)
{
if (verb.GetWord() == verbInfinitive)
{
return verb;
}
}
std::cout << "Error in GetVerbRecordFromDictionary" << std::endl;
return VerbRecord();
}
std::wstring cutSelfEndingIfPossible(std::wstring& verb)
{
if (verb.substr(verb.size() - 2, 2) == L"ся")
{
verb.erase(verb.size() - 2, 2);
return L"ся";
}
if (verb.substr(verb.size() - 2, 2) == L"сь")
{
verb.erase(verb.size() - 2, 2);
return L"сь";
}
return L"";
}
std::vector<std::wstring> GetAllVerbEndingArr()
{
std::vector<std::wstring> result;
result.push_back(L"еть");
result.push_back(L"ать");
result.push_back(L"оть");
result.push_back(L"ить");
result.push_back(L"уть");
result.push_back(L"ять");
result.push_back(L"ел");
result.push_back(L"ал");
result.push_back(L"ол");
result.push_back(L"ил");
result.push_back(L"ул");
result.push_back(L"ял");
result.push_back(L"ела");
result.push_back(L"ала");
result.push_back(L"ола");
result.push_back(L"ила");
result.push_back(L"ула");
result.push_back(L"яла");
result.push_back(L"ело");
result.push_back(L"ало");
result.push_back(L"оло");
result.push_back(L"ило");
result.push_back(L"уло");
result.push_back(L"яло");
result.push_back(L"ели");
result.push_back(L"али");
result.push_back(L"оли");
result.push_back(L"или");
result.push_back(L"ули");
result.push_back(L"яли");
result.push_back(L"ею");
result.push_back(L"аю");
result.push_back(L"ю");
result.push_back(L"яю");
result.push_back(L"у");
result.push_back(L"еешь");
result.push_back(L"аешь");
result.push_back(L"ешь");
result.push_back(L"яешь");
result.push_back(L"ишь");
result.push_back(L"еет");
result.push_back(L"ает");
result.push_back(L"ет");
result.push_back(L"яет");
result.push_back(L"ит");
result.push_back(L"еем");
result.push_back(L"аем");
result.push_back(L"ем");
result.push_back(L"яем");
result.push_back(L"им");
result.push_back(L"еете");
result.push_back(L"аете");
result.push_back(L"ете");
result.push_back(L"яете");
result.push_back(L"ите");
result.push_back(L"еют");
result.push_back(L"ают");
result.push_back(L"ют");
result.push_back(L"ут");
result.push_back(L"яют");
result.push_back(L"ят");
return result;
}
bool VerbEndingDivision::operator<(const VerbEndingDivision& other) const
{
if (base != other.base)
{
return base < other.base;
}
else
{
return ending < other.ending;
}
}
std::set<VerbEndingDivision> getPossibleVerbEndingDivisionSet(std::wstring verb)
{
std::set<VerbEndingDivision> result;
auto allVerbEndingArr = GetAllVerbEndingArr();
for (auto ending : allVerbEndingArr)
{
if (boost::ends_with(verb, ending))
{
std::wstring nounBase = boost::replace_last_copy(verb, ending, "");
result.insert({ nounBase, ending });
}
}
return result;
}
std::set<std::pair<VerbParams, VerbConjunction>> getAllPossibleVerbParamsAndConjunctions(std::wstring ending)
{
std::set<std::pair<VerbParams, VerbConjunction>> result;
for (auto& vTableRecord : VerbParamsTable)
{
for (int i = 0; i < VC_SIZE; i++)
{
if (vTableRecord.verbConjunctionTable[i].ending == ending)
{
result.insert({ vTableRecord.verbParams, vTableRecord.verbConjunctionTable[i].conjunction });
}
}
}
return result;
}
std::wstring GetVerbInfinitive(std::wstring modifiedBase, VerbConjunction verbConjunction)
{
return modifiedBase + VerbParamsTable[0].verbConjunctionTable[static_cast<int>(verbConjunction)].ending;
}
void RecognizeVerb(std::wstring verb, std::vector<std::shared_ptr<WordPairInterface>>& wordPair)
{
std::wstring selfEnding = cutSelfEndingIfPossible(verb);
auto verbEndingDivisionArr = getPossibleVerbEndingDivisionSet(verb);
for (auto verbEndingDivision : verbEndingDivisionArr)
{
std::wstring verbBase = verbEndingDivision.base;
std::wstring verbEnding = verbEndingDivision.ending;
std::wstring modifiedBase = (verbBase);
std::wstring modifiedEnding = (verbEnding);
std::set<std::pair<VerbParams, VerbConjunction>> possibleParams = getAllPossibleVerbParamsAndConjunctions(modifiedEnding);
for (auto& verbParams : possibleParams)
{
std::wstring verbInfinitive = GetVerbInfinitive(modifiedBase, verbParams.second);
if (VerbIsInDictionary(verbInfinitive))
{
VerbPair* verbPair = new VerbPair(VerbStruct(verbParams.first, selfEnding), GetVerbRecordFromDictionary(verbInfinitive));
wordPair.push_back(std::shared_ptr<WordPairInterface>(verbPair));
}
}
}
}
void LoadVerbConjunctionTable()
{
VerbParamsTable.clear();
#ifdef _WIN32
std::ifstream f("C:/Workplace/ChineseJournal/rudict/verb_conjunction.txt");
#else
std::ifstream f("/home/devuser/workplace/rudict/verb_conjunction.txt");
#endif
std::string line;
std::wstring wline;
if (f.is_open())
{
std::cout << "File found!" << std::endl;
std::vector<VerbConjunctionTableRecord> currentVerbConjunctionTable;
std::wstring currentVerbParams;
std::wstring currentVerbConjunction;
getline(f, line); //Skip one line
while (getline(f, line))
{
std::vector<std::string> lineArr;
boost::split_regex(lineArr, line, boost::regex(" "));
if (lineArr[0] != "")
{
if (currentVerbParams == L"")
{
currentVerbParams = string_to_wstring(lineArr[0]);
}
else
{
VerbParamsTable.push_back(VerbParamsTableRecord{ WStringToVerbParams(currentVerbParams), currentVerbConjunctionTable });
currentVerbParams = string_to_wstring(lineArr[0]);
currentVerbConjunctionTable.clear();
}
}
if (lineArr[1] != "")
{
currentVerbConjunction = string_to_wstring(lineArr[1]);
}
std::wstring ending = string_to_wstring(lineArr[2]);
//std::set<std::wstring> endingsSet;
//boost::split_regex(endingsSet, ending, boost::regex(", "));
currentVerbConjunctionTable.push_back({
WStringToVerbConjunction(currentVerbConjunction),
ending
});
}
//Add last one
if (currentVerbParams != L"")
{
VerbParamsTable.push_back(VerbParamsTableRecord{ WStringToVerbParams(currentVerbParams), currentVerbConjunctionTable });
}
f.close();
}
else
{
std::cout << "file not found!" << std::endl;
}
}
void LoadFrequentWordSet()
{
#ifdef _WIN32
std::ifstream f("C:/Workplace/ChineseJournal/rudict/frequent_verbs_2000.txt");
#else
std::ifstream f("/home/devuser/workplace/rudict/frequent_verbs_2000.txt");
#endif
std::string line;
std::wstring wline;
if (f.is_open())
{
getline(f, line); //Skip one line
std::cout << "File found!" << std::endl;
while (getline(f, line))
{
wline = string_to_wstring(line);
VerbRecord verbRecord(wline);
VerbRecordArr.push_back(verbRecord);
}
f.close();
}
else
{
std::cout << "file not found!" << std::endl;
}
}
}
+162
View File
@@ -0,0 +1,162 @@
#ifndef VERB_H_INCLUDED
#define VERB_H_INCLUDED
#include <string>
#include <map>
#include <set>
#include <vector>
#include <fstream>
#include "boost/algorithm/string.hpp"
#include "grammarCase.h"
namespace VB
{
struct VerbRecord : public WordHolder
{
bool getCanBePrefixed() const;
bool getCanBeNotPrefixed() const;
bool getCanBePerfect() const;
bool getCanBeImperfect() const;
void SetAllFields();
void SetAllFields(const std::vector<std::wstring>& lineArr);
VerbRecord();
VerbRecord(std::wstring line);
};
enum VerbParams
{
VP_INFINITIVE = 0,
VP_PAST_MALE_SINGULAR,
VP_PAST_FEMALE_SINGULAR,
VP_PAST_NEUTER_SINGULAR,
VP_PAST_PLURAL,
VP_PRESENT_FIRSTPERSON_SINGULAR,
VP_PRESENT_SECONDPERSON_SINGULAR,
VP_PRESENT_THIRDPERSON_SINGULAR,
VP_PRESENT_FIRSTPERSON_PLURAL,
VP_PRESENT_SECONDPERSON_PLURAL,
VP_PRESENT_THIRDPERSON_PLURAL,
VP_SIZE
};
struct VerbStruct : public WordModificatorInterface
{
//VerbParams verbParams;
//std::wstring selfEnding;
//VerbRecord verbRecord;
VerbStruct();
VerbStruct(VerbParams iVerbParams, std::wstring iSelfEnding);
//boost::property_tree::wptree GetModificators() const;
//bool operator<(const VerbStruct& v) const;
};
struct VerbPair : public WordPairInterface
{
protected:
VerbStruct modificator;
VerbRecord wordRecord;
public:
VerbPair();
VerbPair(VerbStruct iModificator, VerbRecord iWordRecord);
virtual const WordModificatorInterface& wordModificator() const;
virtual const WordHolder& word() const;
virtual std::wstring getType();
};
extern std::vector<VerbRecord> VerbRecordArr;
enum VerbConjunction
{
VC_FIRST_ET = 0,
VC_FIRST_AT,
VC_FIRST_OT,
VC_FIRST_IT,
VC_FIRST_YT,
VC_FIRST_YAT,
VC_SECOND_IT,
VC_SECOND_ET,
VC_SECOND_AT,
VC_SIZE
};
struct VerbConjunctionTableRecord
{
VerbConjunction conjunction;
std::wstring ending;
};
struct VerbParamsTableRecord
{
VerbParams verbParams;
std::vector<VerbConjunctionTableRecord> verbConjunctionTable;
};
extern std::vector<VerbParamsTableRecord> VerbParamsTable;
VerbParams WStringToVerbParams(std::wstring str);
std::wstring VerbParamsToWString(VerbParams verbParams);
VerbConjunction WStringToVerbConjunction(std::wstring str);
bool VerbIsInDictionary(std::wstring verbInfinitive);
VerbRecord GetVerbRecordFromDictionary(std::wstring verbInfinitive);
std::wstring cutSelfEndingIfPossible(std::wstring& verb);
std::vector<std::wstring> GetAllVerbEndingArr();
struct VerbEndingDivision
{
std::wstring base;
std::wstring ending;
bool operator<(const VerbEndingDivision& other) const;
};
std::set<VerbEndingDivision> getPossibleVerbEndingDivisionSet(std::wstring verb);
std::set<std::pair<VerbParams, VerbConjunction>> getAllPossibleVerbParamsAndConjunctions(std::wstring ending);
std::wstring GetVerbInfinitive(std::wstring modifiedBase, VerbConjunction verbConjunction);
void RecognizeVerb(std::wstring verb, std::vector<std::shared_ptr<WordPairInterface>>& wordPair);
void LoadVerbConjunctionTable();
void LoadFrequentWordSet();
} //namespace VB
#endif //VERB_H_INCLUDED
+100
View File
@@ -0,0 +1,100 @@
Лицо и род и время и число Спряжение Окончание Пример
VP_INFINITIVE VC_FIRST_ET еть успеть
VC_FIRST_AT ать делать
VC_FIRST_OT оть бороть
VC_FIRST_IT ить стелить
VC_FIRST_YT уть вздохнуть
VC_FIRST_YAT ять стрелять
VC_SECOND_IT ить курить
VC_SECOND_ET еть смотреть
VC_SECOND_AT ать слышать
VP_PAST_MALE_SINGULAR VC_FIRST_ET ел успел
VC_FIRST_AT ал делал
VC_FIRST_OT ол борол
VC_FIRST_IT ил стелил
VC_FIRST_YT ул вздохнул
VC_FIRST_YAT ял стрелял
VC_SECOND_IT ил курил
VC_SECOND_ET ел смотрел
VC_SECOND_AT ал слышал
VP_PAST_FEMALE_SINGULAR VC_FIRST_ET ела успел
VC_FIRST_AT ала делал
VC_FIRST_OT ола борол
VC_FIRST_IT ила стелил
VC_FIRST_YT ула вздохнула
VC_FIRST_YAT яла стрелял
VC_SECOND_IT ила курил
VC_SECOND_ET ела смотрел
VC_SECOND_AT ала слышал
VP_PAST_NEUTER_SINGULAR VC_FIRST_ET ело успел
VC_FIRST_AT ало делал
VC_FIRST_OT оло борол
VC_FIRST_IT ило стелил
VC_FIRST_YT уло вздохнуло
VC_FIRST_YAT яло стрелял
VC_SECOND_IT ило курил
VC_SECOND_ET ело смотрел
VC_SECOND_AT ало слышал
VP_PAST_PLURAL VC_FIRST_ET ели успел
VC_FIRST_AT али делал
VC_FIRST_OT оли борол
VC_FIRST_IT или стелил
VC_FIRST_YT ули вздохнули
VC_FIRST_YAT яли стрелял
VC_SECOND_IT или курил
VC_SECOND_ET ели смотрел
VC_SECOND_AT али слышал
VP_PRESENT_FIRSTPERSON_SINGULAR VC_FIRST_ET ею успею
VC_FIRST_AT аю делаю
VC_FIRST_OT ю борю
VC_FIRST_IT ю стелю
VC_FIRST_YT у вздохну
VC_FIRST_YAT яю стреляю
VC_SECOND_IT ю курю
VC_SECOND_ET ю смотрю
VC_SECOND_AT у слышу
VP_PRESENT_SECONDPERSON_SINGULAR VC_FIRST_ET еешь успеешь
VC_FIRST_AT аешь делаешь
VC_FIRST_OT ешь борешь
VC_FIRST_IT ешь стелешь
VC_FIRST_YT ешь вздохнешь
VC_FIRST_YAT яешь стреляешь
VC_SECOND_IT ишь куришь
VC_SECOND_ET ишь смотришь
VC_SECOND_AT ишь слышишь
VP_PRESENT_THIRDPERSON_SINGULAR VC_FIRST_ET еет успеет
VC_FIRST_AT ает делает
VC_FIRST_OT ет борет
VC_FIRST_IT ет стелет
VC_FIRST_YT ет вздохнет
VC_FIRST_YAT яет стреляет
VC_SECOND_IT ит курит
VC_SECOND_ET ит смотрит
VC_SECOND_AT ит слышит
VP_PRESENT_FIRSTPERSON_PLURAL VC_FIRST_ET еем успеем
VC_FIRST_AT аем делаем
VC_FIRST_OT ем борем
VC_FIRST_IT ем стелем
VC_FIRST_YT ем вздохнем
VC_FIRST_YAT яем стреляем
VC_SECOND_IT им курим
VC_SECOND_ET им смотрим
VC_SECOND_AT им слышим
VP_PRESENT_SECONDPERSON_PLURAL VC_FIRST_ET еете успеете
VC_FIRST_AT аете делаете
VC_FIRST_OT ете борете
VC_FIRST_IT ете стелете
VC_FIRST_YT ете вздохнете
VC_FIRST_YAT яете стреляете
VC_SECOND_IT ите курите
VC_SECOND_ET ите смотрите
VC_SECOND_AT ите слышите
VP_PRESENT_THIRDPERSON_PLURAL VC_FIRST_ET еют успеют
VC_FIRST_AT ают делают
VC_FIRST_OT ют борют
VC_FIRST_IT ют стелют
VC_FIRST_YT ут вздохнут
VC_FIRST_YAT яют стреляют
VC_SECOND_IT ят курят
VC_SECOND_ET ят смотрят
VC_SECOND_AT ат слышат
Binary file not shown.