|
using System;
using System.Text.RegularExpressions;
namespace SpellChecker.Dictionary.Affix
{
/// <summary>
/// Rule Entry for expanding base words
/// </summary>
public class AffixEntry
{
private int _ConditionCount;
private string _AddCharacters = "";
private int[] _Condition = new int[256] ;
private string _StripCharacters = "";
/// <summary>
/// Initializes a new instance of the class
/// </summary>
public AffixEntry()
{
}
/// <summary>
/// The characters to add to the string
/// </summary>
public string AddCharacters
{
get {return _AddCharacters;}
set {_AddCharacters = value;}
}
/// <summary>
/// The condition to be met in order to add characters
/// </summary>
public int[] Condition
{
get {return _Condition;}
set {_Condition = value;}
}
/// <summary>
/// The characters to remove before adding characters
/// </summary>
public string StripCharacters
{
get {return _StripCharacters;}
set {_StripCharacters = value;}
}
/// <summary>
/// The number of conditions that must be met
/// </summary>
public int ConditionCount
{
get {return _ConditionCount;}
set {_ConditionCount = value;}
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.