-
Notifications
You must be signed in to change notification settings - Fork 170
Conversation
…or syllable counting in the preprocessor
Conflicts: js/analyzer.js
Conflicts: js/analyzer.js
created function for counting links and checking type of links and nofollow.
@@ -0,0 +1,18 @@ | |||
{ | |||
"boss": true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I should use single quote's instead of double ones.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since in JavaScript there is no real difference between singles and doubles I decided to do everything with doubles, so if there is singlequote in a textstring it doesn't have to be escaped.
|
||
/** | ||
* rates the keyword density against given number | ||
* @param keywordDensity |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is type type of keywordDensity?
Something like @param integer keywordDensity
makes it easier to understand.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added types to the @params
Added linkcounter, including checks for outbound links and nofollow attribute, based on the input textstring in stead of DOMelements.
Fixes #8