public override bool IsCompatibleWith(IEarleyInput input) { var typedInput = (LexicalItem)input; return(typedInput.PartOfSpeech == this.ParentNode.Name); //IEnumerable<string> possibleWordsForCategory = null; //return items.TryGetValue(this.ParentNode.Name, out possibleWordsForCategory) // && possibleWordsForCategory.Contains(typedInput.Word); }
public bool IsCompatibleWith(IEarleyInput input) { return(this.Node.IsCompatibleWith(input)); }
public bool IsCompatibleWith(IEarleyInput input) { return(this.Data.Equals(((RegularEarleyInput)input).Data)); }
public virtual bool IsCompatibleWith(IEarleyInput input) { return(false); }