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

Class: I18N_Arabic_WordTag

Source Location: /Arabic/WordTag.php

Class Overview


This PHP class to tagging Arabic Word


Author(s):

Copyright:

  • 2006-2016 Khaled Al-Sham'aa

Methods



Class Details

[line 118]
This PHP class to tagging Arabic Word



Tags:

author:  Khaled Al-Sham'aa <khaled@ar-php.org>
copyright:  2006-2016 Khaled Al-Sham'aa
link:  http://www.ar-php.org
license:  LGPL


[ Top ]


Class Methods


static method highlightText [line 323]

static string highlightText( string $str, [string $style = null])

Highlighted all nouns in a given Arabic string



Tags:

return:  Arabic string in HTML format where all nouns highlighted
author:  Khaled Al-Sham'aa <khaled@ar-php.org>
access:  public


Parameters:

string   $str   Arabic string you want to highlighted all its nouns
string   $style   Name of the CSS class you would like to apply

[ Top ]

static method isNoun [line 154]

static boolean isNoun( string $word, string $word_befor)

Check if given rabic word is noun or not



Tags:

return:  TRUE if given word is Arabic noun
author:  Khaled Al-Sham'aa <khaled@ar-php.org>
access:  public


Parameters:

string   $word   Word you want to check if it is noun (utf-8)
string   $word_befor   The word before word you want to check

[ Top ]

static method tagText [line 290]

static 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-Sham'aa <khaled@ar-php.org>
access:  public


Parameters:

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

[ Top ]


Documentation generated on Fri, 01 Jan 2016 10:26:31 +0200 by phpDocumentor 1.4.0