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:

  • 2009 Khaled Al-Shamaa

Variables

Methods



Class Details

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



Tags:

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


[ Top ]


Class Variables

static $_noun_max_post =  6

[line 93]



Tags:

access:  protected

Type:   mixed


[ Top ]

static $_noun_max_pre =  4

[line 92]



Tags:

access:  protected

Type:   mixed


[ Top ]

static $_noun_may =

[line 90]



Tags:

access:  protected

Type:   mixed


[ Top ]

static $_noun_min_stem =  2

[line 94]



Tags:

access:  protected

Type:   mixed


[ Top ]

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

[line 89]



Tags:

access:  protected

Type:   mixed


[ Top ]

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

[line 88]



Tags:

access:  protected

Type:   mixed


[ Top ]

static $_verb_max_post =  6

[line 85]



Tags:

access:  protected

Type:   mixed


[ Top ]

static $_verb_max_pre =  4

[line 84]



Tags:

access:  protected

Type:   mixed


[ Top ]

static $_verb_may =

[line 82]



Tags:

access:  protected

Type:   mixed


[ Top ]

static $_verb_min_stem =  2

[line 86]



Tags:

access:  protected

Type:   mixed


[ Top ]

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

[line 81]



Tags:

access:  protected

Type:   mixed


[ Top ]

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

[line 80]



Tags:

access:  protected

Type:   mixed


[ Top ]



Class Methods


static method stem [line 118]

static string stem( string $word, [string $inputCharset = null], [string $outputCharset = null], [object $main = null])

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
string   $inputCharset   (optional) Input charset [utf-8|windows-1256|iso-8859-6] default value is NULL (use set input charset)
string   $outputCharset   (optional) Output charset [utf-8|windows-1256|iso-8859-6] default value is NULL (use set output charset)
object   $main   Main Ar-PHP object to access charset converter options

[ Top ]

static method _stem [line 159]

static string _stem( 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 ]

constructor __construct [line 99]

ArStemmer __construct( )

Loads initialize values



Tags:

access:  public


[ Top ]


Documentation generated on Fri, 12 Mar 2010 01:01:44 +0300 by phpDocumentor 1.4.0