Example #1
0
 public ContractionDictionary(AdverbDictionary adverbs, DeterminantDictionary determinants)
 {
     contractions = new[] {
         DeclareContraction("aux", true, adverbs.GetMatchingWords(new Word("à")).Single(), determinants.GetMatchingWords(new Word("les")).Single()),
         DeclareContraction("au", true, adverbs.GetMatchingWords(new Word("à")).Single(), determinants.GetMatchingWords(new Word("le")).Single()),
     };
 }
Example #2
0
        private static IEnumerable <IDictionary> BuildDictionaries()
        {
            var adverbs      = new AdverbDictionary();
            var determinants = new DeterminantDictionary();

            return(new IDictionary[] {
                adverbs,
                new VerbDictionary(),
                new NounDictionary(),
                new AdjectiveDictionary(),
                determinants,
                new PrepositionDictionary(),
                new ConjunctionDictionary(),
                new PersonalPronounDictionary(),
                new AdjectifPossessifDictionary(),
                new RelativePronounDictionary(),
                new NumeralAdjectiveDictionary(),
                new ContractionDictionary(adverbs, determinants),
                new NegationDictionary(),
                new DemonstrativePronounDictionary(),
                new QuantifierDictionary(),
                new ParticipePasseVerbDictionary(),
                new ProperNounPseudoDictionary(),
            });
        }