UNPKG

yoastseo-dep

Version:

Yoast clientside page analysis

35 lines (29 loc) 1.3 kB
import { inherits } from "util"; import IntroductionKeywordAssessment from "./assessments/seo/IntroductionKeywordAssessment"; import KeyphraseLengthAssessment from "./assessments/seo/KeyphraseLengthAssessment"; import KeyphraseDensityAssessment from "./assessments/seo/KeywordDensityAssessment"; import MetaDescriptionKeywordAssessment from "./assessments/seo/MetaDescriptionKeywordAssessment"; import Assessor from "./assessor"; import FunctionWordsInKeyphrase from "./assessments/seo/FunctionWordsInKeyphraseAssessment"; /** * Creates the Assessor used for taxonomy pages. * * @param {Researcher} researcher The researcher to use for the analysis. * @param {Object?} options The options for this assessor. * * @constructor */ const RelatedKeywordTaxonomyAssessor = function( researcher, options ) { Assessor.call( this, researcher, options ); this.type = "relatedKeywordsTaxonomyAssessor"; this._assessments = [ new IntroductionKeywordAssessment(), new KeyphraseLengthAssessment( { isRelatedKeyphrase: true } ), new KeyphraseDensityAssessment(), new MetaDescriptionKeywordAssessment(), // Text Images assessment here. new FunctionWordsInKeyphrase(), ]; }; inherits( RelatedKeywordTaxonomyAssessor, Assessor ); export default RelatedKeywordTaxonomyAssessor;