示例#1
0
        internal override bool Control(INlpAnalyzeIndex analyze, LineCollection lines, AnalyzeIndex index)
        {
            if (index.WordNumber >= lines[index.LineNumber].SentenceList[index.SentenceNumber].WordList.Count - 1)
            {
                return(false);
            }

            var nextWord = lines[index.LineNumber].SentenceList[index.SentenceNumber].WordList[index.WordNumber + 1]?.SpellWord?.Root?.Text?.ToLower();

            if (nextWord == "mahalle")
            {
                return(true);
            }
            else if (nextWord == "mah")
            {
                return(true);
            }
            else if (nextWord == "mah.")
            {
                return(true);
            }


            return(false);
        }
示例#2
0
 internal abstract bool Control(INlpAnalyzeIndex analyze, LineCollection lines, AnalyzeIndex index);