コード例 #1
0
 /// <summary>
 /// Adds the gerund rule.
 /// </summary>
 /// <param name="rule">The rule.</param>
 protected void AddGerundRule(string rule)
 {
     GerundRules.Add(new Rule(rule, string.Empty));
 }
コード例 #2
0
 /// <summary>
 /// Determines whether the specified input is gerund.
 /// </summary>
 /// <param name="input">The input.</param>
 /// <returns><c>true</c> if the specified input is gerund; otherwise, <c>false</c>.</returns>
 public bool IsGerund(string input)
 {
     return(GerundRules.Any(x => x.CanApply(input)) && !IsGerundException(input));
 }