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

Class: ArWordTag

Source Location: /sub/ArWordTag.class.php

Class Overview


This PHP Class can identifying names, places, dates, and other noun words and phrases in Arabic language that establish the meaning of a body of text.


Author(s):

Copyright:

  • Khaled Al-Shamaa 2008

Methods



Class Details

[line 41]
This PHP Class can identifying names, places, dates, and other noun words and phrases in Arabic language that establish the meaning of a body of text.



Tags:

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


[ Top ]


Class Methods


constructor __construct [line 44]

ArWordTag __construct( )



Tags:

access:  public


[ Top ]

method highlightText [line 152]

String highlightText( String $str)

Highlighted all nouns in a given Arabic string



Tags:

return:  Arabic string in HTML format where all nouns highlighted
author:  Khaled Al-Shamaa <khaled.alshamaa@gmail.com>
access:  public


Parameters:

String   $str   Arabic string you want to highlighted all its nouns

[ Top ]

method isNoun [line 57]

TRUE isNoun( String $word, String $word_befor)

Check if given rabic word is noun or not



Tags:

return:  if given word is Arabic noun
author:  Khaled Al-Shamaa <khaled.alshamaa@gmail.com>
access:  public


Parameters:

String   $word   Word you want to check if it is noun (windows-1256)
String   $word_befor   The word before word you want to check

[ Top ]

method tagText [line 124]

Array tagText( String $str)

Tag all words in a given Arabic string if they are nouns or not



Tags:

return:  Two dimension array where item[i][0] represent the word i in the given string, and item[i][1] is 1 if that word is noun and 0 if it is not
author:  Khaled Al-Shamaa <khaled.alshamaa@gmail.com>
access:  public


Parameters:

String   $str   Arabic string you want to tag all its words

[ Top ]


Documentation generated on Thu, 21 Feb 2008 13:58:56 +0200 by phpDocumentor 1.4.0