This is documentation for Caché & Ensemble.

For information on converting to InterSystems IRIS, see the InterSystems IRIS Adoption Guide and the InterSystems IRIS In-Place Conversion Guide, both available on the WRC Distributions page (login required).

Home > Class Reference > %SYS namespace > %iKnow.Stemming.Rule


persistent class %iKnow.Stemming.Rule extends %Library.Persistent

SQL Table Name: %iKnow_Stemming.Rule

Table to which custom disambiguation rules can be added to influence the default stemmer class (%iKnow.Stemming.DefaultStemmer). See also %iKnow.Stemming.Utils.

Property Inventory (Including Private)

Properties (Including Private)

property Entity as %String (MAXLEN = 200);
For advanced exceptions, this value should appear in the entity being stemmed for the rule to apply.
Property methods: EntityDisplayToLogical(), EntityGet(), EntityGetStored(), EntityIsValid(), EntityLogicalToDisplay(), EntityLogicalToOdbc(), EntityNormalize(), EntitySet()
property LanguageCode as %String (MAXLEN = 2) [ Required ];
Language for which this rules holds
Property methods: LanguageCodeDisplayToLogical(), LanguageCodeGet(), LanguageCodeGetStored(), LanguageCodeIsValid(), LanguageCodeLogicalToDisplay(), LanguageCodeLogicalToOdbc(), LanguageCodeNormalize(), LanguageCodeSet()
property Plugin as %String (VALUELIST = ",All,Hunspell") [ Required ];
The plugin to which this rule applies (use "All" for all plugin types)
Property methods: PluginDisplayToLogical(), PluginGet(), PluginGetStored(), PluginIsValid(), PluginLogicalToDisplay(), PluginLogicalToOdbc(), PluginNormalize(), PluginSet()
property Replace as %String (MAXLEN = 100) [ Required ];
For exceptions, what to replace Value with
Property methods: ReplaceDisplayToLogical(), ReplaceGet(), ReplaceGetStored(), ReplaceIsValid(), ReplaceLogicalToDisplay(), ReplaceLogicalToOdbc(), ReplaceNormalize(), ReplaceSet()
property Spec as %String (VALUELIST = ",Relation,Concept,NoRelation,NoConcept");
Specification of the rule, whether it applies (only) to concepts or relationships. When type=Exception: the role of the entity in which case the exception applies. When type'=Exception: whether tems satisfying this rule are Not-a-Concept or Not-a-Relation
Property methods: SpecDisplayToLogical(), SpecGet(), SpecGetStored(), SpecIsValid(), SpecLogicalToDisplay(), SpecLogicalToOdbc(), SpecNormalize(), SpecSet()
property Type as %String (VALUELIST = ",Exception,Ending,Affix") [ Required ];
Type of disambiguation rule
Property methods: TypeDisplayToLogical(), TypeGet(), TypeGetStored(), TypeIsValid(), TypeLogicalToDisplay(), TypeLogicalToOdbc(), TypeNormalize(), TypeSet()
property Value as %String (MAXLEN = 100) [ Required ];
Value of the exception or ending this rule represents
Property methods: ValueDisplayToLogical(), ValueGet(), ValueGetStored(), ValueIsValid(), ValueLogicalToDisplay(), ValueLogicalToOdbc(), ValueNormalize(), ValueSet()

Inherited Members

Inherited Methods (Including Private)


Storage Model: CacheStorage (%iKnow.Stemming.Rule)