예제 #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());
        }
예제 #2
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());
        }
예제 #3
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());
        }
예제 #4
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());
        }
예제 #5
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());
        }
예제 #6
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());
        }
예제 #7
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());
        }