Esempio n. 1
0
        public bool IsEpsilonAdPosition()
        {
            bool result = UpRule.Equals(MorphemeRule.Epsilon) &&
                          !RightRule.Equals(MorphemeRule.Nothing) &&
                          !LeftRule.Equals(MorphemeRule.Nothing) &&
                          !RightRule.MorphRule.Evaluate(null) && !RightRule.MorphRule.Evaluate("") && !RightRule.AttributesRule.Evaluate(0) &&
                          !LeftRule.MorphRule.Evaluate(null) && !LeftRule.MorphRule.Evaluate("") && !LeftRule.AttributesRule.Evaluate(0);

            return(result);
        }
Esempio n. 2
0
 public bool Equals(Pattern other) =>
 UpRule.Equals(other.UpRule) &&
 LeftRule.Equals(other.LeftRule) &&
 RightRule.Equals(other.RightRule) &&
 ValencyPosition == other.ValencyPosition;