Skip to main content

%iKnow.Stemming.Rule

Class %iKnow.Stemming.Rule Extends %Persistent [ Deprecated, System = 4 ]

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

Properties

Plugin

Property Plugin As %String(VALUELIST = ",All,Hunspell") [ Required ];

The plugin to which this rule applies (use "All" for all plugin types)

Type

Property Type As %String(VALUELIST = ",Exception,Ending,Affix") [ Required ];

Type of disambiguation rule

Spec

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

LanguageCode

Property LanguageCode As %String(MAXLEN = 2) [ Required ];

Language for which this rules holds

Value

Property Value As %String(MAXLEN = 100) [ Required ];

Value of the exception or ending this rule represents

Replace

Property Replace As %String(MAXLEN = 100) [ Required ];

For exceptions, what to replace Value with

Entity

Property Entity As %String(MAXLEN = 200);

For advanced exceptions, this value should appear in the entity being stemmed for the rule to apply.