private StopSignExceptionRule GetRegexException() { var regexList = DataStore.GetDotRegexList(); StopSignExceptionRule regexException = new RegexExceptionRule(regexList); return(regexException); }
protected override IList <StopSignExceptionRule> GetSentenceStartExceptions() { var exceptions = new List <StopSignExceptionRule>(); var regexList = DataStore.GetDotRegexListForStartSentence(); StopSignExceptionRule regexListException = new RegexExceptionRule(regexList); exceptions.Add(regexListException); return(exceptions); }
protected override IList <StopSignExceptionRule> GetSentenceAnywhereExceptions() { var exceptions = new List <StopSignExceptionRule>(); var regexList = new List <string>(); var regexException = new RegexExceptionRule(regexList); //url regexList.Add(@"^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$"); exceptions.Add(regexException); return(exceptions); }
protected override IList <StopSignExceptionRule> GetSentenceStartExceptions() { var exceptions = new List <StopSignExceptionRule>(); var regexList = new List <string>(); var regexException = new RegexExceptionRule(regexList); // regexList.Add(""); //regexList.Add(""); exceptions.Add(regexException); return(exceptions); }