コード例 #1
0
        public void ParseKepekenIloSuli()
        {
            const string        value = "~kepeken ilo suli";
            PrepositionalPhrase c     = PrepositionalPhrase.Parse(value);

            Assert.AreEqual("~kepeken", c.Preposition.ToString());
            Console.WriteLine(c.ToJsonDcJs());
            Assert.AreEqual("~kepeken ilo suli", c.ToString(), c.ToString("b"));
        }
コード例 #2
0
        public static PrepositionalPhrase[] SamplePrepsChain()
        {
            //Bit over kill.
            Chain simpleChain = new Chain(Particles.pi, new[]
            {
                new HeadedPhrase(Words.jelo, new WordSet {
                    Words.esun
                })
            });
            ComplexChain complexChain = new ComplexChain(Particles.en, new[] { simpleChain });

            Chain simpleChain2 = new Chain(Particles.pi, new[]
            {
                new HeadedPhrase(Words.jelo, new WordSet {
                    Words.esun
                })
            });
            ComplexChain complexChain2 = new ComplexChain(Particles.en, new[] { simpleChain2 });

            PrepositionalPhrase phrase1 = new PrepositionalPhrase(Words.kepeken, complexChain);
            PrepositionalPhrase phrase2 = new PrepositionalPhrase(Words.kepeken, complexChain2);

            return(new[] { phrase1, phrase2 });//should these be it's own concept?
        }
コード例 #3
0
 public ModiferPhrase(PrepositionalPhrase prepositionalPhrase)
 {
     this.prepositionalPhrase = prepositionalPhrase;
 }