Class PersianNormalizer
Normalizer for Persian.
Normalization is done in-place for efficiency, operating on a termbuffer.
Normalization is defined as:
- Normalization of various heh + hamza forms and heh goal to heh.
- Normalization of farsi yeh and yeh barree to arabic yeh
- Normalization of persian keheh to arabic kaf
Inherited Members
Namespace: Lucene.Net.Analysis.Fa
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
public class PersianNormalizer
Fields
FARSI_YEH
Normalizer for Persian.
Normalization is done in-place for efficiency, operating on a termbuffer.
Normalization is defined as:
- Normalization of various heh + hamza forms and heh goal to heh.
- Normalization of farsi yeh and yeh barree to arabic yeh
- Normalization of persian keheh to arabic kaf
Declaration
public const char FARSI_YEH = 'ی'
Field Value
Type | Description |
---|---|
char |
HAMZA_ABOVE
Normalizer for Persian.
Normalization is done in-place for efficiency, operating on a termbuffer.
Normalization is defined as:
- Normalization of various heh + hamza forms and heh goal to heh.
- Normalization of farsi yeh and yeh barree to arabic yeh
- Normalization of persian keheh to arabic kaf
Declaration
public const char HAMZA_ABOVE = 'ٔ'
Field Value
Type | Description |
---|---|
char |
HEH
Normalizer for Persian.
Normalization is done in-place for efficiency, operating on a termbuffer.
Normalization is defined as:
- Normalization of various heh + hamza forms and heh goal to heh.
- Normalization of farsi yeh and yeh barree to arabic yeh
- Normalization of persian keheh to arabic kaf
Declaration
public const char HEH = 'ه'
Field Value
Type | Description |
---|---|
char |
HEH_GOAL
Normalizer for Persian.
Normalization is done in-place for efficiency, operating on a termbuffer.
Normalization is defined as:
- Normalization of various heh + hamza forms and heh goal to heh.
- Normalization of farsi yeh and yeh barree to arabic yeh
- Normalization of persian keheh to arabic kaf
Declaration
public const char HEH_GOAL = 'ہ'
Field Value
Type | Description |
---|---|
char |
HEH_YEH
Normalizer for Persian.
Normalization is done in-place for efficiency, operating on a termbuffer.
Normalization is defined as:
- Normalization of various heh + hamza forms and heh goal to heh.
- Normalization of farsi yeh and yeh barree to arabic yeh
- Normalization of persian keheh to arabic kaf
Declaration
public const char HEH_YEH = 'ۀ'
Field Value
Type | Description |
---|---|
char |
KAF
Normalizer for Persian.
Normalization is done in-place for efficiency, operating on a termbuffer.
Normalization is defined as:
- Normalization of various heh + hamza forms and heh goal to heh.
- Normalization of farsi yeh and yeh barree to arabic yeh
- Normalization of persian keheh to arabic kaf
Declaration
public const char KAF = 'ك'
Field Value
Type | Description |
---|---|
char |
KEHEH
Normalizer for Persian.
Normalization is done in-place for efficiency, operating on a termbuffer.
Normalization is defined as:
- Normalization of various heh + hamza forms and heh goal to heh.
- Normalization of farsi yeh and yeh barree to arabic yeh
- Normalization of persian keheh to arabic kaf
Declaration
public const char KEHEH = 'ک'
Field Value
Type | Description |
---|---|
char |
YEH
Normalizer for Persian.
Normalization is done in-place for efficiency, operating on a termbuffer.
Normalization is defined as:
- Normalization of various heh + hamza forms and heh goal to heh.
- Normalization of farsi yeh and yeh barree to arabic yeh
- Normalization of persian keheh to arabic kaf
Declaration
public const char YEH = 'ي'
Field Value
Type | Description |
---|---|
char |
YEH_BARREE
Normalizer for Persian.
Normalization is done in-place for efficiency, operating on a termbuffer.
Normalization is defined as:
- Normalization of various heh + hamza forms and heh goal to heh.
- Normalization of farsi yeh and yeh barree to arabic yeh
- Normalization of persian keheh to arabic kaf
Declaration
public const char YEH_BARREE = 'ے'
Field Value
Type | Description |
---|---|
char |
Methods
Normalize(char[], int)
Normalize an input buffer of Persian text
Declaration
public virtual int Normalize(char[] s, int len)
Parameters
Type | Name | Description |
---|---|---|
char[] | s | input buffer |
int | len | length of input buffer |
Returns
Type | Description |
---|---|
int | length of input buffer after normalization |