Example #1
0
        private StopSignExceptionRule GetRegexException()
        {
            var regexList = DataStore.GetDotRegexList();
            StopSignExceptionRule regexException = new RegexExceptionRule(regexList);

            return(regexException);
        }
Example #2
0
        protected override IList <StopSignExceptionRule> GetSentenceStartExceptions()
        {
            var exceptions = new List <StopSignExceptionRule>();
            var regexList  = DataStore.GetDotRegexListForStartSentence();
            StopSignExceptionRule regexListException = new RegexExceptionRule(regexList);

            exceptions.Add(regexListException);

            return(exceptions);
        }
Example #3
0
        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);
        }
Example #4
0
        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);
        }