UNPKG

yoastseo

Version:

Yoast client-side content analysis

20 lines (19 loc) 631 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = checkIfWordIsFunction; var _functionWords = require("../config/functionWords"); /** * Checks if a word is a function word. * * @param {string} word The word to check. * * @returns {boolean} Whether or not a word is a function word. */ function checkIfWordIsFunction(word) { // All words are converted to lower case before processing to avoid excluding function words that start with a capital letter. word = word.toLowerCase(); return _functionWords.all.includes(word); } //# sourceMappingURL=checkIfWordIsFunction.js.map