src/SanitizerFactory.php
public function newStopwordAnalyzerByLanguage( $languageCode = null ) {

		if ( $languageCode === null ) {
			return $this->newNullStopwordAnalyzer();
		}

		$cdbStopwordAnalyzer = $this->newCdbStopwordAnalyzer(
			$languageCode
		);

		return $cdbStopwordAnalyzer->isAvailable() ? $cdbStopwordAnalyzer : $this->newNullStopwordAnalyzer();;
	}
public function newStopwordAnalyzerByLanguage( $languageCode = null ) {

		if ( $languageCode === null ) {
			return $this->newNullStopwordAnalyzer();
		}

		$cdbStopwordAnalyzer = $this->newCdbStopwordAnalyzer(
			$languageCode
		);

		return $cdbStopwordAnalyzer->isAvailable() ? $cdbStopwordAnalyzer : $this->newNullStopwordAnalyzer();;
	}
@since 0.1

@param string|null $languageCode

@return StopwordAnalyzer