Class SentenceDescription
SentenceDescription holds the sentence text and its calculated features
- normalizes the features
- store feature as (1 - normalized-feature-value) for display purposes
Defined in: SentenceDescription.js.
Constructor Attributes | Constructor Name and Description |
---|---|
SentenceDescription(wordLen, sentLen, vocCompl, nomForm, sentStructCompl, text)
|
Method Attributes | Method Name and Description |
---|---|
returns the feature values of the sentence
|
|
getText()
returns the sentence text
|
Class Detail
SentenceDescription(wordLen, sentLen, vocCompl, nomForm, sentStructCompl, text)
- Parameters:
- {number} wordLen
- readability-feature 'word length'
- {number} sentLen
- readability-feature 'sentence length'
- {number} vocCompl
- readability-feature 'vocabulary complexity'
- {number} nomForm
- readability-feature 'nominal forms'
- {number} sentStructCompl
- readability-feature 'sentence structure complexity'
- {string} text
- sentence text
Method Detail
getProperties()
returns the feature values of the sentence
getText()
returns the sentence text