C# Class SIL.FieldWorks.IText.SandboxBase.MorphemeBreaker

Analyze the string. We're looking for something like un- except -ion -al -ly. The one with spaces on both sides is a root, the others are prefixes or suffixes. Todo WW(JohnT): enhance to handle other morpheme break characters. Todo WW (JohnT): enhance to look for trailing ;POS and handle appropriately.
Afficher le fichier Open project: sillsdev/FieldWorks Class Usage Examples

Méthodes publiques

Méthode Description
BreakIntoMorphs ( string morphFormWithMarkers, string baseWord ) : List
DoBasicFinding ( string input, string breakMarkers, string prefixMarkers, string postfixMarkers ) : string

Handle basic work on finding the morpheme breaks.

MakeSel ( ) : void

Reestablish a selection, if possible.

MorphemeBreaker ( CachePair caches, string input, int hvoSbWord, int wsVern, SandboxBase sandbox ) : System
Run ( ) : void

Run the morpheme breaking algorithm.

Private Methods

Méthode Description
AdjustIpForInsertions ( string fullForm ) : void

Check the fullForm for added spaces. m_input must be unchanged since fullForm was changed.

BreakIntoMorphs ( string morphFormWithMarkers, string baseWord, List &ccTrailingMorphs ) : List

Split the string into morphs respecting existing spaces in base word

GetExistingMorphForm ( int &hvoSbMorph, int &hvoSbForm, int imorph ) : string
HandleMorpheme ( string stMorph, int ccTrailing, bool fMonoMorphemic ) : void

Should be called with a non-empty sequence of characters from m_ichStartMorpheme to m_ich as a morpheme.

IchLimOfMorphs ( string sourceString, bool fBaseWordIsPhrase ) : List

get the end offsets for potential morphs based upon whitespace delimiters

TrimInputString ( ) : string
WhiteSpaceOffsets ( string sourceString ) : List

Method Details

BreakIntoMorphs() public static méthode

public static BreakIntoMorphs ( string morphFormWithMarkers, string baseWord ) : List
morphFormWithMarkers string
baseWord string
Résultat List

DoBasicFinding() public static méthode

Handle basic work on finding the morpheme breaks.
public static DoBasicFinding ( string input, string breakMarkers, string prefixMarkers, string postfixMarkers ) : string
input string
breakMarkers string
prefixMarkers string
postfixMarkers string
Résultat string

MakeSel() public méthode

Reestablish a selection, if possible.
public MakeSel ( ) : void
Résultat void

MorphemeBreaker() public méthode

public MorphemeBreaker ( CachePair caches, string input, int hvoSbWord, int wsVern, SandboxBase sandbox ) : System
caches CachePair
input string
hvoSbWord int
wsVern int
sandbox SandboxBase
Résultat System

Run() public méthode

Run the morpheme breaking algorithm.
public Run ( ) : void
Résultat void