/** * @dataProvider stopWordProvider */ public function testIsStopWord($languageCode, $word, $expected) { $instane = new CdbStopwordAnalyzer(CdbStopwordAnalyzer::getTargetByLanguage($languageCode)); $this->assertEquals($expected, $instane->isStopWord($word)); }
/** * @since 0.1 * * @return StopwordAnalyzer */ public function newCdbStopwordAnalyzer($languageCode = null) { return new CdbStopwordAnalyzer(CdbStopwordAnalyzer::getTargetByLanguage($languageCode)); }