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

            return(regexException);
        }
示例#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);
        }
示例#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);
        }
示例#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);
        }