mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-01 07:40:10 +00:00
[lunr] Add missing lunr.generateStopWordFilter function (#21998)
This commit is contained in:
13
types/lunr/index.d.ts
vendored
13
types/lunr/index.d.ts
vendored
@@ -626,6 +626,19 @@ declare namespace lunr {
|
||||
*/
|
||||
function stemmer(token: Token): Token;
|
||||
|
||||
/**
|
||||
* lunr.generateStopWordFilter builds a stopWordFilter function from the provided
|
||||
* list of stop words.
|
||||
*
|
||||
* The built in lunr.stopWordFilter is built using this generator and can be used
|
||||
* to generate custom stopWordFilters for applications or non English languages.
|
||||
*
|
||||
* @param stopWords - The list of stop words
|
||||
* @see lunr.Pipeline
|
||||
* @see lunr.stopWordFilter
|
||||
*/
|
||||
function generateStopWordFilter(stopWords: string[]): PipelineFunction;
|
||||
|
||||
/**
|
||||
* lunr.stopWordFilter is an English language stop word list filter, any words
|
||||
* contained in the list will not be passed through the filter.
|
||||
|
||||
Reference in New Issue
Block a user