UNPKG

yoastseo

Version:

Yoast client-side content analysis

24 lines (22 loc) 1.05 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = _default; var _yoastseo = require("yoastseo"); const { getWords } = _yoastseo.languageProcessing; const passiveParticipleEndings = "(ούμενους|ημένους|ούμενος|ούμενου|ούμενον|ούμενης|ούμενοι|ούμενων|ούμενες|μένους|" + "ημένος|ημένου|ημένον|ημένοι|ημένων|ημένης|ημένες|ούμενη|ούμενο|ούμενα|μένος|μένου|μένον|μένοι|μένης|μένες|" + "μένων|ημένη|ημένο|ημένα|μένη|μένο|μένα)$"; /** * Creates an array of participles found in a clause. * * @param {string} clauseText The clause to finds participles in. * * @returns {Array} The array with the participles found. */ function _default(clauseText) { const words = getWords(clauseText); return words.filter(word => new RegExp(passiveParticipleEndings).test(word)); } //# sourceMappingURL=getParticiples.js.map