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)); }
public override bool Check(ArticleInfo article) { return(Retf.DetectTypo(article.Text, article.Title)); }
public override bool Check(ref string ArticleText, ref string ArticleTitle, string ArticleTimestamp, string ArticleRestrictions) { return(retf.DetectTypo(ArticleText)); }
public override bool Check(ref string ArticleText, ref string ArticleTitle) { return(retf.DetectTypo(ArticleText)); }