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

Procedural File: ArGender.class.php

Source Location: /sub/ArGender.class.php



Classes:

ArGender
This PHP class attempts to guess the gender of Arabic names


Page Details:

----------------------------------------------------------------------

Copyright (c) 2006-2010 Khaled Al-Shamaa.

http://www.ar-php.org

PHP Version 5

----------------------------------------------------------------------

LICENSE

This program is open source product; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (LGPL) as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this program. If not, see <http://www.gnu.org/licenses/lgpl.txt>.

----------------------------------------------------------------------

Class Name: Arabic Gender Guesser

Filename: ArGender.class.php

Original Author(s): Khaled Al-Sham'aa <khaled.alshamaa@gmail.com>

Purpose: This class attempts to guess the gender of Arabic names

----------------------------------------------------------------------

Arabic Gender Guesser

This PHP class attempts to guess the gender of Arabic names.

Arabic nouns are either masculine or feminine. Usually when referring to a male, a masculine noun is usually used and when referring to a female, a feminine noun is used. In most cases the feminine noun is formed by adding a special characters to the end of the masculine noun. Its not just nouns referring to people that have gender. Inanimate objects (doors, houses, cars, etc.) is either masculine or feminine. Whether an inanimate noun is masculine or feminine is mostly arbitrary.

Example:

  1.    include('./Arabic.php');
  2.    $obj new Arabic('ArGender');
  3.  
  4.    echo "$name ";
  5.  
  6.    if ($obj->isFemale($name== true{
  7.       echo '(Female)';
  8.    }else{
  9.       echo '(Male)';
  10.    }




Tags:

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








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