WikiFunctions.Parse.TypoGroup.TypoGroup C# (CSharp) Method

TypoGroup() public method

Creates a group that holds similar typos
public TypoGroup ( int groupSize, string match, string dontMatch, string prefix, string postfix ) : System
groupSize int Typos in a batch
match string Regex each typo should match, its first group will be used for extraction
dontMatch string Regex each typo shouldn't match
prefix string
postfix string
return System
        public TypoGroup(int groupSize, string match, string dontMatch, string prefix, string postfix)
        {
            GroupSize = groupSize;

            if (!string.IsNullOrEmpty(match))
                Allow = new Regex(match, RegexOptions.Compiled);
            if (!string.IsNullOrEmpty(dontMatch))
                Disallow = new Regex(dontMatch, RegexOptions.Compiled);

            Prefix = prefix;
            Postfix = postfix;
        }