Arabic
[ class tree: Arabic ] [ index: Arabic ] [ all elements ]

Class: ArStemmer

Source Location: /sub/ArStemmer.class.php

Class Overview


This PHP class get stem of an Arabic word


Author(s):

Copyright:

  • 2006-2010 Khaled Al-Shamaa

Variables

Methods



Class Details

[line 109]
This PHP class get stem of an Arabic word



Tags:

author:  Khaled Al-Shamaa <khaled.alshamaa@gmail.com>
copyright:  2006-2010 Khaled Al-Shamaa
link:  http://www.ar-php.org
license:  LGPL


[ Top ]


Class Variables

static $noun_max_post =  6

[line 124]



Tags:

access:  protected

Type:   mixed


[ Top ]

static $noun_max_pre =  4

[line 123]



Tags:

access:  protected

Type:   mixed


[ Top ]

static $noun_may =

[line 121]



Tags:

access:  protected

Type:   mixed


[ Top ]

static $noun_min_stem =  2

[line 125]



Tags:

access:  protected

Type:   mixed


[ Top ]

static $noun_post =  'اتةكمنهوي'

[line 120]



Tags:

access:  protected

Type:   mixed


[ Top ]

static $noun_pre =  'ابفكلوأ'

[line 119]



Tags:

access:  protected

Type:   mixed


[ Top ]

static $verb_max_post =  6

[line 116]



Tags:

access:  protected

Type:   mixed


[ Top ]

static $verb_max_pre =  4

[line 115]



Tags:

access:  protected

Type:   mixed


[ Top ]

static $verb_may =

[line 113]



Tags:

access:  protected

Type:   mixed


[ Top ]

static $verb_min_stem =  2

[line 117]



Tags:

access:  protected

Type:   mixed


[ Top ]

static $verb_post =  'ومكانيه'

[line 112]



Tags:

access:  protected

Type:   mixed


[ Top ]

static $verb_pre =  'وأسفلي'

[line 111]



Tags:

access:  protected

Type:   mixed


[ Top ]

$stemInput =  'windows-1256'

[line 137]

"stem" method output charset



Tags:

access:  public

Type:   String


[ Top ]

$stemOutput =  'windows-1256'

[line 131]

"stem" method input charset



Tags:

access:  public

Type:   String


[ Top ]

$stemVars = array('word')

[line 143]

Name of the textual "stem" method parameters



Tags:

access:  public

Type:   Array


[ Top ]



Class Methods


static method roughStem [line 195]

static string roughStem( string $word, string $notChars, string $preChars, string $postChars, integer $maxPre, integer $maxPost, integer $minStem)

Get rough stem of the given Arabic word (under specific rules)



Tags:

return:  Arabic stem of the word under giving rules
author:  Khaled Al-Shamaa <khaled.alshamaa@gmail.com>
access:  protected


Parameters:

string   $word   Arabic word you would like to get its stem
string   $notChars   Arabic chars those can't be in postfix or prefix
string   $preChars   Arabic chars those may exists in the prefix
string   $postChars   Arabic chars those may exists in the postfix
integer   $maxPre   Max prefix length
integer   $maxPost   Max postfix length
integer   $minStem   Min stem length

[ Top ]

static method stem [line 162]

static string stem( string $word)

Get rough stem of the given Arabic word



Tags:

return:  Arabic stem of the word
author:  Khaled Al-Shamaa <khaled.alshamaa@gmail.com>
access:  public


Parameters:

string   $word   Arabic word you would like to get its stem

[ Top ]

constructor __construct [line 148]

ArStemmer __construct( )

Loads initialize values



Tags:

access:  public


[ Top ]


Documentation generated on Sat, 14 Aug 2010 13:23:58 -0700 by phpDocumentor 1.4.0