nl_tokens: Builds morphological forms of words of the keyphrase and of each synonym phrase .
pl_tokens: function ( keyphrase , synonyms , language = "en" , morphologyData ) { const synonymsSplit = parseSynonyms ( synonyms ) ; const keyphraseForms = buildForms ( keyphrase , language , morphologyData ) ; const synonymsForms = synonymsSplit . <mask> ( synonym => buildForms ( synonym , language , morphologyData ) ) ; return { keyphraseForms : keyphraseForms , synonymsForms : synonymsForms , } ; }