Function Fast_custom_index->singular_ngram_is_stop_word

Definitions

sources/database_search.php

  • Find whether a singular ngram (typically a word) is a stop word (i.e. too banal to be indexed).
  • Visibility: protected
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: bool

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$ngram string No No required parameter N/A N/A Singular ngram
$lang LANGUAGE_NAME No No required parameter N/A N/A Language codename

Returns

  • Whether it is
  • Type: boolean
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Find whether a singular ngram (typically a word) is a stop word (i.e. too banal to be indexed).
 *
 * @param  string $ngram Singular ngram
 * @param  LANGUAGE_NAME $lang Language codename
 * @return boolean Whether it is
 */

protected function singular_ngram_is_stop_word(string $ngram, string $lang) : bool