Comparing version 0.0.4 to 0.0.5
@@ -6,5 +6,5 @@ "use strict"; | ||
constructor(content, htmlAnalyzer, strictMode = false) { | ||
this.MINIMUM_KEYWORD_DENSITY = 1; | ||
this.MAXIMUM_KEYWORD_DENSITY = 3; | ||
this.MAXIMUM_SUB_KEYWORD_DENSITY = 1; | ||
this.MINIMUM_KEYWORD_DENSITY = 0.46; | ||
this.MAXIMUM_KEYWORD_DENSITY = 1.1; | ||
this.MAXIMUM_SUB_KEYWORD_DENSITY = 0.9; | ||
this.MINIMUM_SUB_KEYWORD_DENSITY = 0.12; | ||
@@ -149,3 +149,3 @@ this.EXTREME_LOW_SUB_KEYWORD_DENSITY = 0.09; | ||
let densityBeingLowString = subKeywordDensity.density < this.EXTREME_LOW_SUB_KEYWORD_DENSITY ? 'too low' : 'low'; | ||
this.messages.warnings.push(`The density of sub keyword "${subKeywordDensity.keyword}" is ${densityBeingLowString} in the content, i.e. ${subKeywordDensity.density.toFixed(2)}%.`); | ||
this.messages.minorWarnings.push(`The density of sub keyword "${subKeywordDensity.keyword}" is ${densityBeingLowString} in the content, i.e. ${subKeywordDensity.density.toFixed(2)}%.`); | ||
} | ||
@@ -259,3 +259,3 @@ else { | ||
let densityBeingLowString = subKeyword.density < 0.2 ? 'too low' : 'low'; | ||
this.messages.warnings.push(`The density of sub keyword "${subKeyword.keyword}" in meta description is ${densityBeingLowString}, i.e. ${subKeyword.density.toFixed(2)}%.`); | ||
this.messages.minorWarnings.push(`The density of sub keyword "${subKeyword.keyword}" in meta description is ${densityBeingLowString}, i.e. ${subKeyword.density.toFixed(2)}%.`); | ||
} | ||
@@ -262,0 +262,0 @@ else { |
{ | ||
"name": "seord", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Advanced SEO Analyzer", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
64133