public override bool IsMatch(IParsedPhrase check) { string words = check.Text; return(Verbs.IsModal(words)); // TODO: better use of "used to" etc, if parsed [ought [to verbx]] // TODO: can I encorporate "%is [not] going to"? }
public override bool IsMatch(Concept concept) { // Is this a time? If so, we can work with it! if (concept.IsSpecial && (concept == memory.past || concept == memory.now || concept == memory.future)) { return(true); } List <string> parts = StringUtilities.SplitWords(concept.Name, true); foreach (string part in parts) { if (!(part == "en" || part == "ing" || Verbs.IsModal(part) || Verbs.IsToBe(part) || Verbs.IsToDo(part) || Verbs.IsToHave(part))) { return(false); } } return(true); }