src/Arabic/parse/ar_WordSegment.cpp
/*Look for a clitic prefix in a word return the type of prefix
*
*/
Look for a clitic prefix in a word return the type of prefix
Look for a clitic prefix in a word return the type of prefix
int WordSegment::_prefix(const wchar_t* word, int loc){
	wchar_t c = word[loc];
	if(c == ArabicSymbol::ArabicChar('w') || 
		c ==ArabicSymbol::ArabicChar('f'))
		return CONJ;
	else if(c == ArabicSymbol::ArabicChar('b') || 
			c == ArabicSymbol::ArabicChar('k') || 
			c == ArabicSymbol::ArabicChar('l'))
		return PREP;
	return 0;
}
int WordSegment :: _prefix ( const wchar_t * word , int loc ) { wchar_t c = word [ loc ] ; if ( c == ArabicSymbol :: ArabicChar ( ' ' ) || c == ArabicSymbol :: ArabicChar ( ' ' ) ) return CONJ ; else if ( c == ArabicSymbol :: ArabicChar ( ' ' ) || c == ArabicSymbol :: ArabicChar ( ' ' ) || c == ArabicSymbol :: ArabicChar ( ' ' ) ) return PREP ; return 0 ; }
Look for a clitic prefix in a word return the type of prefix
Look for a clitic prefix in a word return the type of prefix
/* This particle only occurs once in training so ignore it for now
	else if(wstrlen(word)>loc+1)
		if(c == ArabicSymbol::ArabicChar('m') && 
			word[loc+1]==ArabicSymbol::ArabicChar('A'))
			return PART;
	*/