I18N_Arabic

# Procedural File: Gender.php Source Location: /Arabic/Gender.php ## Classes: I18N_Arabic_Gender This PHP class attempts to guess the gender of Arabic names ## Page Details: ---------------------------------------------------------------------- Copyright (c) 2006-2013 Khaled Al-Sham'aa. 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: Gender.php Original Author(s): Khaled Al-Sham'aa <khaled@ar-php.org> 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: include('./I18N/Arabic.php'); $obj = new I18N_Arabic('Gender'); echo "$name "; if ($obj->isFemale($name) == true) { echo '(Female)'; }else{ echo '(Male)'; } #### Tags:
author: | Khaled Al-Sham'aa <khaled@ar-php.org>
copyright: | 2006-2013 Khaled Al-Sham'aa
link: | http://www.ar-php.org
filesource: | Source Code for this file
license: | LGPL
Documentation generated on Mon, 14 Jan 2013 17:48:44 +0100 by phpDocumentor 1.4.0