Ejemplo n.º 1
0
        private static List <string> InitializeRestWithKidsRule()
        {
            var result = new List <string>();
            var kid    = WordsCollection.GetNounDeclension("ребёнок");

            result.AddRange(kid);
            result.AddRange(kid.Select(word =>
                                       word.Replace('ё', 'е'))); // include typos
            kid = WordsCollection.GetNounDeclension("ребёночек");
            result.AddRange(kid);
            result.AddRange(kid.Select(word =>
                                       word.Replace('ё', 'е'))); // include typos
            result.AddRange(WordsCollection.GetNounDeclension("мальчик"));
            result.AddRange(WordsCollection.GetNounDeclension("мальчишка"));
            result.AddRange(WordsCollection.GetNounDeclension("девочка"));
            var girl = WordsCollection.GetNounDeclension("девчёнка");

            result.AddRange(girl);
            result.AddRange(girl.Select(word =>
                                        word.Replace('ё', 'е'))); // include typos
            result.AddRange(WordsCollection.GetNounDeclension("сын"));
            result.AddRange(WordsCollection.GetNounDeclension("сынок"));
            result.AddRange(WordsCollection.GetNounDeclension("сыночек"));
            result.AddRange(WordsCollection.GetNounDeclension("сынишка"));
            result.AddRange(WordsCollection.GetNounDeclension("дочь"));
            result.AddRange(WordsCollection.GetNounDeclension("дочка"));
            result.AddRange(WordsCollection.GetNounDeclension("доченька"));
            result.AddRange(WordsCollection.GetNounDeclension("дочурка"));
            result.AddRange(WordsCollection.GetNounDeclension("дитя"));
            result.AddRange(WordsCollection.GetNounDeclension("малыш"));
            result.AddRange(WordsCollection.GetNounDeclension("младенец"));
            result.AddRange(WordsCollection.GetNounDeclension("отпрыск"));
            result.AddRange(WordsCollection.GetAdjectiveDeclension("детский"));
            return(result.Select(element => element.ToLower()).ToList());
        }
Ejemplo n.º 2
0
        private static List <string> InitializeKidsClubRule()
        {
            var result = new List <string>();

            result.AddRange(WordsCollection.GetPhraseDeclension("детская кроватка"));
            result.AddRange(WordsCollection.GetPhraseDeclension("детская кровать"));
            result.AddRange(WordsCollection.GetPhraseDeclension("детский клуб"));
            var club = WordsCollection.GetNounDeclension("клуб");

            result.AddRange(club.Select(word => $"{word} для детей"));
            var oneKid = club.Select(word => $"{word} для ребёнка").ToList();

            result.AddRange(oneKid);
            result.AddRange(oneKid.Select(word => word.Replace('ё', 'е'))); // include typos
            var bed = WordsCollection.GetNounDeclension("кровать");

            result.AddRange(bed.Select(word => $"{word} для детей"));
            oneKid = bed.Select(word => $"{word} для ребёнка").ToList();
            result.AddRange(oneKid);
            result.AddRange(oneKid.Select(word => word.Replace('ё', 'е'))); // include typos
            bed = WordsCollection.GetNounDeclension("кроватка");
            result.AddRange(bed.Select(word => $"{word} для детей"));
            oneKid = bed.Select(word => $"{word} для ребёнка").ToList();
            result.AddRange(oneKid);
            result.AddRange(oneKid.Select(word => word.Replace('ё', 'е'))); // include typos
            return(result.Select(element => element.ToLower()).ToList());
        }
Ejemplo n.º 3
0
        private static List <string> InitializePickyRule()
        {
            var result = new List <string>();

            result.AddRange(WordsCollection.GetAdjectiveDeclension("непривередливый"));
            result.AddRange(WordsCollection.GetAdjectiveDeclension("привередливый")
                            .Select(word => $"не {word}")); // include typos
            result.AddRange(WordsCollection.GetAdjectiveDeclension("неприхотливый"));
            result.AddRange(WordsCollection.GetAdjectiveDeclension("прихотливый")
                            .Select(word => $"не {word}")); // include typos
            result.AddRange(WordsCollection.GetAdjectiveDeclension("нетребовательный"));
            result.AddRange(WordsCollection.GetAdjectiveDeclension("требовательный")
                            .Select(word => $"не {word}")); // include typos
            result.AddRange(WordsCollection.GetAdjectiveDeclension("некапризный"));
            result.AddRange(WordsCollection.GetAdjectiveDeclension("капризный")
                            .Select(word => $"не {word}")); // include typos
            result.AddRange(WordsCollection.GetAdjectiveDeclension("неразборчивый"));
            result.AddRange(WordsCollection.GetAdjectiveDeclension("разборчивый")
                            .Select(word => $"не {word}")); // include typos
            result.AddRange(WordsCollection.GetAdjectiveDeclension("непритязательный"));
            result.AddRange(WordsCollection.GetAdjectiveDeclension("притязательный")
                            .Select(word => $"не {word}")); // include typos
            result.AddRange(WordsCollection.GetAdjectiveDeclension("беспритязательный"));
            var temp = new List <string>
            {
                "предъявляющий", "предъявляющего", "предъявляющему", "предъявляющим", "предъявляющем",
                "предъявляющие", "предъявляющих", "предъявляющими",
                "минимальные требования", "минимальных требований", "минимальным требованиям",
                "минимальными требованиями", "минимальных требованиях"
            };

            result.AddRange(temp.Select(word => $"не {word} больших требований"));
            return(result.Select(element => element.ToLower()).ToList());
        }
Ejemplo n.º 4
0
        private static List <string> InitializeConstructionDateRule()
        {
            var result = new List <string>();

            result.AddRange(WordsCollection.GetNounDeclension("постройка"));
            result.AddRange(WordsCollection.GetNounDeclension("строительство"));
            result.AddRange(WordsCollection.GetNounDeclension("эксплуатация"));
            result.AddRange(WordsCollection.GetNounDeclension("возведение"));
            result.AddRange(WordsCollection.GetNounDeclension("воздвиженье"));
            result.AddRange(WordsCollection.GetNounDeclension("реновация"));
            result.AddRange(WordsCollection.GetNounDeclension("обновление"));
            result.AddRange(WordsCollection.GetNounDeclension("ремонт"));
            result.AddRange(WordsCollection.GetNounDeclension("ремонтирование"));
            result.AddRange(new List <string>
            {
                "построен", "воздвижен", "воздвигнут", "отремотирован", "ремонтирован",
                "обновлён", "обновлен", "отсроен", "воздвигнут",
                "построенный", "построенные", "построенного", "построенных",
                "построенному", "построенным", "построенными", "построенном",
                "воздвиженный", "воздвиженные", "воздвиженного", "воздвиженных",
                "воздвиженному", "воздвиженным", "воздвиженными", "воздвиженном",
                "отремотированный", "отремотированные", "отремотированного", "отремотированных",
                "отремотированному", "отремотированным", "отремотированными", "отремотированном",
                "эксплуатируемый", "эксплуатируемые", "эксплуатируемого", "эксплуатируемых",
                "эксплуатируемому", "эксплуатируемым", "эксплуатируемыми", "эксплуатируемом",
            });
            return(result.Select(element => element.ToLower()).ToList());
        }
Ejemplo n.º 5
0
        private static List <string> InitializeKidsFoodRule()
        {
            var result = new List <string>();

            result.AddRange(WordsCollection.GetPhraseDeclension("детское питание"));
            result.AddRange(WordsCollection.GetPhraseDeclensionReduced("детская еда"));
            result.AddRange(WordsCollection.GetPhraseDeclension("детская кухня"));
            var food = WordsCollection.GetNounDeclension("питание");

            result.AddRange(food.Select(word => $"{word} для детей"));
            var oneKid = food.Select(word => $"{word} для ребёнка").ToList();

            result.AddRange(oneKid);
            result.AddRange(oneKid.Select(word => word.Replace('ё', 'е'))); // include typos
            food = WordsCollection.GetNounDeclension("еда");
            result.AddRange(food.Select(word => $"{word} для детей"));
            oneKid = food.Select(word => $"{word} для ребёнка").ToList();
            result.AddRange(oneKid);
            result.AddRange(oneKid.Select(word => word.Replace('ё', 'е'))); // include typos
            food = WordsCollection.GetNounDeclension("кухня");
            result.AddRange(food.Select(word => $"{word} для детей"));
            oneKid = food.Select(word => $"{word} для ребёнка").ToList();
            result.AddRange(oneKid);
            result.AddRange(oneKid.Select(word => word.Replace('ё', 'е'))); // include typos
            return(result.Select(element => element.ToLower()).ToList());
        }
Ejemplo n.º 6
0
        private static List <string> InitializeBlenderRule()
        {
            var result = new List <string>();

            result.AddRange(WordsCollection.GetNounDeclension("блендер"));
            result.AddRange(WordsCollection.GetNounDeclension("миксер"));
            return(result.Select(element => element.ToLower()).ToList());
        }
Ejemplo n.º 7
0
        private static List <string> InitializeRoomsRule()
        {
            var result = new List <string>();

            result.AddRange(WordsCollection.GetNounDeclension("номер"));
            result.AddRange(WordsCollection.GetNounDeclension("комната"));
            return(result.Select(element => element.ToLower()).ToList());
        }
Ejemplo n.º 8
0
        private static List <string> InitializeAnimationShowRule()
        {
            var result = new List <string>();

            result.AddRange(WordsCollection.GetNounDeclension("анимация"));
            result.AddRange(WordsCollection.GetNounDeclension("шоу"));
            result.AddRange(WordsCollection.GetNounDeclension("представление"));
            return(result.Select(element => element.ToLower()).ToList());
        }
Ejemplo n.º 9
0
        private static List <string> InitializeBeachBarRule()
        {
            var result = new List <string>();
            var bar    = WordsCollection.GetNounDeclension("бар");

            result.AddRange(bar.Select(word => word.Insert(word.Length, " на пляже")));
            result.AddRange(new List <string> {
                "бар есть на пляже", "бар был на пляже", "бар будет на пляже"
            });
            return(result.Select(element => element.ToLower()).ToList());
        }
Ejemplo n.º 10
0
        private static List <string> InitializePeopleWithDisabilitiesRule()
        {
            var result = new List <string>();

            result.AddRange(WordsCollection.GetNounDeclension("инвалид"));
            result.AddRange(WordsCollection.GetAdjectiveDeclension("травмированный"));
            result.AddRange(new List <string>
            {
                "ограниченные возможности", "ограниченных возможностей", "ограниченным возможностям",
                "ограниченными возможностями", "ограниченных возможностях"
            });
            return(result.Select(element => element.ToLower()).ToList());
        }
Ejemplo n.º 11
0
        private static List <string> InitializeTheCheapestRule()
        {
            var result   = new List <string>();
            var cheapest = WordsCollection.GetPhraseDeclension("самый дешёвый");

            result.AddRange(WordsCollection.GetPhraseDeclension("самый недорогой"));
            result.AddRange(WordsCollection.GetPhraseDeclension("самый малостоящий"));
            result.AddRange(cheapest);
            result.AddRange(cheapest.Select(phrase =>
                                            phrase.Replace('ё', 'е'))); // include typos
            result.AddRange(WordsCollection.GetPhraseDeclension("самый бюджетный"));
            return(result.Select(element => element.ToLower()).ToList());
        }
Ejemplo n.º 12
0
        private static List <string> InitializeBarsQuantityRule()
        {
            var result = new List <string>();
            var amount = WordsCollection.GetNounDeclension("количество");

            result.AddRange(amount.Select(word => word.Insert(word.Length, " баров")));
            amount = WordsCollection.GetNounDeclension("число");
            result.AddRange(amount.Select(word => word.Insert(word.Length, " баров")));
            result.AddRange(Vocabulary.GetNumbersWithNounDeclension("бар"));
            result.AddRange(new List <string> {
                "несколько баров", "много баров"
            });
            return(result.Select(element => element.ToLower()).ToList());
        }
Ejemplo n.º 13
0
        private static List <string> InitializeBabyStrollersRule()
        {
            var result = new List <string>();

            result.AddRange(WordsCollection.GetPhraseDeclension("детская коляска"));
            var rent = WordsCollection.GetNounDeclension("аренда");

            result.AddRange(rent.Select(word => word.Insert(word.Length, " детской коляски")));
            result.AddRange(rent.Select(word => word.Insert(word.Length, " детских колясок")));
            rent = WordsCollection.GetNounDeclension("прокат");
            result.AddRange(rent.Select(word => word.Insert(word.Length, " детской коляски")));
            result.AddRange(rent.Select(word => word.Insert(word.Length, " детских колясок")));
            return(result.Select(element => element.ToLower()).ToList());
        }
Ejemplo n.º 14
0
        private static List <string> InitializeBikeRentalRule()
        {
            var result = new List <string>();

            result.AddRange(WordsCollection.GetNounDeclension("велосипед"));
            var rent = WordsCollection.GetNounDeclension("аренда");

            result.AddRange(rent.Select(word => word.Insert(word.Length, " велосипеда")));
            result.AddRange(rent.Select(word => word.Insert(word.Length, " велосипедов")));
            rent = WordsCollection.GetNounDeclension("прокат");
            result.AddRange(rent.Select(word => word.Insert(word.Length, " велосипеда")));
            result.AddRange(rent.Select(word => word.Insert(word.Length, " велосипедов")));
            return(result.Select(element => element.ToLower()).ToList());
        }
Ejemplo n.º 15
0
        private static List <string> InitializeHeatedPoolRule()
        {
            var result = new List <string>();
            var pool   = WordsCollection.GetNounDeclension("бассейн");

            result.AddRange(pool.Select(word => word.Insert(word.Length, " с подогревом")));
            result.AddRange(new List <string>
            {
                "подогреваемый бассейн", "подогреваемые бассейны",
                "подогреваемого бассейна", "подогреваемых бассейнов",
                "подогреваемому бассейну", "подогреваемым бассейном",
                "подогреваемыми бассейнами", "подогреваемом бассейне",
            });
            return(result.Select(element => element.ToLower()).ToList());
        }
Ejemplo n.º 16
0
        private static List <string> InitializeQualityRule()
        {
            var result = new List <string>();

            result.AddRange(WordsCollection.GetNounDeclension("сервис"));
            result.AddRange(WordsCollection.GetNounDeclension("качество"));
            result.AddRange(WordsCollection.GetNounDeclension("услуга"));
            result.AddRange(WordsCollection.GetNounDeclension("обслуживание"));
            result.AddRange(WordsCollection.GetAdjectiveDeclension("качественный"));
            result.AddRange(WordsCollection.GetAdjectiveDeclension("высококачественный"));
            result.AddRange(WordsCollection.GetAdjectiveDeclension("первоклассный"));
            result.AddRange(WordsCollection.GetAdjectiveDeclension("хороший"));
            result.AddRange(WordsCollection.GetAdjectiveDeclension("отличный"));
            result.AddRange(WordsCollection.GetAdjectiveDeclension("удобный"));
            return(result.Select(element => element.ToLower()).ToList());
        }
Ejemplo n.º 17
0
        private static List <string> InitializeBudgetaryRule()
        {
            var result    = new List <string>();
            var budgetary = WordsCollection.GetAdjectiveDeclension("бюджетный");

            result.AddRange(budgetary);
            result.AddRange(budgetary.Select(word => $"мало{word}"));  // малобюджетный
            result.AddRange(budgetary.Select(word => $"низко{word}")); // низкобюджетный
            result.AddRange(WordsCollection.GetAdjectiveDeclension("экономичный"));
            result.AddRange(WordsCollection.GetAdjectiveDeclension("ценовой")
                            .Select(word => $"низко{word}")); // низкоценовой
            var economyClass = WordsCollection.GetNounDeclension("класс");

            result.AddRange(economyClass.Select(word => $"эконом{word}"));
            result.AddRange(economyClass.Select(word => $"эконом {word}")); // include typos
            result.AddRange(economyClass.Select(word => $"эконом-{word}")); // include typos
            result.AddRange(WordsCollection.GetPhraseDeclension("экономичный класс"));
            return(result.Select(element => element.ToLower()).ToList());
        }
Ejemplo n.º 18
0
        private static List <string> InitializeFoodRule()
        {
            var result = new List <string>();

            result.AddRange(WordsCollection.GetNounDeclension("еда"));
            result.AddRange(WordsCollection.GetNounDeclension("пища"));
            result.AddRange(WordsCollection.GetNounDeclension("питание"));
            result.AddRange(WordsCollection.GetNounDeclension("блюдо"));
            result.AddRange(WordsCollection.GetNounDeclension("перекус"));
            result.AddRange(WordsCollection.GetNounDeclension("закуска"));
            result.AddRange(WordsCollection.GetNounDeclension("завтрак"));
            result.AddRange(WordsCollection.GetNounDeclension("обед"));
            result.AddRange(WordsCollection.GetNounDeclension("ужин"));
            result.AddRange(WordsCollection.GetNounDeclension("рацион"));
            result.AddRange(new List <string> {
                "поесть", "перекусить", "закусить",
            });
            return(result.Select(element => element.ToLower()).ToList());
        }
Ejemplo n.º 19
0
        private static List <string> InitializeKidsPotRule()
        {
            var result = new List <string>();

            result.AddRange(WordsCollection.GetPhraseDeclension("детский горшок"));
            result.AddRange(WordsCollection.GetPhraseDeclension("детский туалет"));
            var pot = WordsCollection.GetNounDeclension("горшок");

            result.AddRange(pot.Select(word => $"{word} для детей"));
            var oneKid = pot.Select(word => $"{word} для ребёнка").ToList();

            result.AddRange(oneKid);
            result.AddRange(oneKid.Select(word => word.Replace('ё', 'е'))); // include typos
            pot = WordsCollection.GetNounDeclension("туалет");
            result.AddRange(pot.Select(word => $"{word} для детей"));
            oneKid = pot.Select(word => $"{word} для ребёнка").ToList();
            result.AddRange(oneKid);
            result.AddRange(oneKid.Select(word => word.Replace('ё', 'е'))); // include typos
            return(result.Select(element => element.ToLower()).ToList());
        }
Ejemplo n.º 20
0
        private static List <string> InitializeSportAndTrainingRule()
        {
            var result = new List <string>();

            result.AddRange(WordsCollection.GetNounDeclension("дайвинг"));
            result.AddRange(WordsCollection.GetNounDeclension("футбол"));
            result.AddRange(WordsCollection.GetNounDeclension("волейбол"));
            result.AddRange(WordsCollection.GetNounDeclension("баскетбол"));
            result.AddRange(WordsCollection.GetNounDeclension("теннис"));
            result.AddRange(WordsCollection.GetNounDeclension("теннис"));
            result.AddRange(WordsCollection.GetNounDeclension("тренировка"));
            result.AddRange(WordsCollection.GetAdjectiveDeclension("спортивный"));
            var gym = WordsCollection.GetPhraseDeclension("тренажерный зал");

            result.AddRange(gym);
            result.AddRange(WordsCollection.GetPhraseDeclensionWithReplacedChar(gym, 6, 'ё')); // include typos
            result.AddRange(new List <string> {
                "спорт", "фитнесс", "фитнесс зал", "фитнес", "фитнес зал"
            });
            return(result.Select(element => element.ToLower()).ToList());
        }
Ejemplo n.º 21
0
        private static List <string> InitializeAlcoholRule()
        {
            var result = new List <string>();

            result.AddRange(WordsCollection.GetNounDeclension("бокал"));
            result.AddRange(WordsCollection.GetNounDeclension("бутылка"));
            result.AddRange(WordsCollection.GetNounDeclension("бутылочка"));
            result.AddRange(WordsCollection.GetNounDeclension("бокальчик"));
            result.AddRange(WordsCollection.GetNounDeclension("вино"));
            result.AddRange(WordsCollection.GetNounDeclension("шампанское"));
            result.AddRange(WordsCollection.GetNounDeclension("алкоголь"));
            result.AddRange(WordsCollection.GetNounDeclension("выпивка"));
            result.AddRange(WordsCollection.GetNounDeclension("напиток"));
            result.AddRange(WordsCollection.GetAdjectiveDeclension("алкогольный"));
            result.AddRange(WordsCollection.GetAdjectiveDeclension("спиртной"));
            result.AddRange(WordsCollection.GetAdjectiveDeclension("крепкий"));
            result.AddRange(WordsCollection.GetAdjectiveDeclension("горячительный"));
            result.AddRange(new List <string> {
                "выпить", "выпивать"
            });
            return(result.Select(element => element.ToLower()).ToList());
        }