extension/ezoe/modules/ezoe/classes/GoogleSpell.php
function &getSuggestions($lang, $word) {
		$sug = array();
		$osug = array();
		$matches = $this->_getMatches($lang, $word);

		if (count($matches) > 0)
			$sug = explode("\t", $this->_unhtmlentities($matches[0][4]));

		// Remove empty
		foreach ($sug as $item) {
			if ($item)
				$osug[] = $item;
		}

		return $osug;
	}
function &getSuggestions($lang, $word) {
		$sug = array();
		$osug = array();
		$matches = $this->_getMatches($lang, $word);

		if (count($matches) > 0)
			$sug = explode("\t", $this->_unhtmlentities($matches[0][4]));

		// Remove empty
		foreach ($sug as $item) {
			if ($item)
				$osug[] = $item;
		}

		return $osug;
	}
function & getSuggestions ( $ lang , $ word ) { $ sug = array ( ) ; $ osug = array ( ) ; $ matches = $ this -> _getMatches ( $ lang , $ word ) ; if ( count ( $ matches ) > 0 ) $ sug = explode ( "\t" , $ this -> _unhtmlentities ( $ matches [ 0 ] [ 4 ] ) ) ; // Remove empty foreach ( $ sug as $ item ) { if ( $ item ) $ osug [ ] = $ item ; } return $ osug ; }
Returns suggestions of for a specific word.

@param {String} $lang Language code like sv or en.
@param {String} $word Specific word to get suggestions for.
@return {Array} Array of suggestions for the specified word.
Returns suggestions of for a specific word .