예제 #1
0
        private bool DetectTypo(string articleText, string articleTitle)
        {
            if (Retf == null)
            {
                if (Typos.Count == 0)
                {
                    throw new Exception("You forgot to provide a list of typos!");
                }
                Retf = new RegExTypoFix(false, new TypoList(Typos));
            }

            return(Retf.DetectTypo(articleText, articleTitle));
        }
예제 #2
0
 public override bool Check(ArticleInfo article)
 {
     return(Retf.DetectTypo(article.Text, article.Title));
 }
예제 #3
0
 public override bool Check(ref string ArticleText, ref string ArticleTitle, string ArticleTimestamp, string ArticleRestrictions)
 {
     return(retf.DetectTypo(ArticleText));
 }
예제 #4
0
 public override bool Check(ref string ArticleText, ref string ArticleTitle)
 {
     return(retf.DetectTypo(ArticleText));
 }