yoastseo
Version:
Yoast client-side content analysis
23 lines (22 loc) • 681 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _default;
/**
* Determines the length in words of the keyphrase.
*
* @param {Paper} paper The paper to research
* @param {Researcher} researcher The researcher to use for analysis
*
* @returns {Object} The length of the keyphrase and the function words list.
*/
function _default(paper, researcher) {
const topicForms = researcher.getResearch("morphology");
const functionWords = researcher.getConfig("functionWords");
return {
keyphraseLength: topicForms.keyphraseForms.length,
functionWords: functionWords
};
}
//# sourceMappingURL=keyphraseLength.js.map