API - XOOPS 2.5.11 Beta 2
By monxoops.fr
StopWords Class Reference

Public Member Functions

 __construct ()
 
 check ($key)
 

Data Fields

const ENCODING = 'UTF-8'
 

Protected Attributes

 $stopwordList = array()
 

Constructor & Destructor Documentation

◆ __construct()

__construct ( )

StopWords constructor - load stop words for current locale

Todo:
specify locale to constructor, will require shift away from defined constant

Member Function Documentation

◆ check()

check (   $key)

check - look up a word in a list of stop words and classify it as a significant word or a stop word.

Parameters
string$keythe word to check
Returns
bool True if word is significant, false if it is a stop word

Field Documentation

◆ $stopwordList

$stopwordList = array()
protected

◆ ENCODING

const ENCODING = 'UTF-8'

mbstring encoding


The documentation for this class was generated from the following file: