NSString(RNTextStatistics) Category Reference
| Declared in | NSString+RNTextStatistics.h |
Tasks
Readability Tests
-
– fleschKincaidReadingEaseGet the Flesch Kincaid Reading Ease for a string of text.
-
– fleschKincaidGradeLevelGet the Flesch Kincaid Grade Level for a string of text.
-
– gunningFogIndexGet the Gunning Fog Index for a string of text.
-
– colemanLiauIndexGet the Coleman Liau Index for a string of text.
-
– smogIndexGet the SMOG Index for a string of text.
-
– automatedReadabilityIndexGet the Automated Readability Index for a string of text.
Counting
-
– letterCountGet the total number of alphabetical characters in a string.
-
– wordCountGet the total number of words in a string.
-
– sentenceCountGet the total number of sentences in a string.
-
– syllableCountGet the total number of syllables in a word string.
-
– syllableTotalGet the total number of syllables in a string.
-
– wordsWithThreeSyllablesWithProperNouns:Get the total number of words with at least 3 syllables in a string.
Averages
-
– percentageWordsWithThreeSyllablesWithProperNouns:Get the percentage of words with at least 3 syllables in a string.
-
– averageSyllablesPerWordGet the average number of syllables per word in a string.
-
– averageWordsPerSentenceGet the average number of words per sentence in a string
Utilities
-
– cleanTextClean the text of non-alphanumeric characters, clean terminators, and remove newlines.
Instance Methods
automatedReadabilityIndex
Get the Automated Readability Index for a string of text.
- (float)automatedReadabilityIndexSee Also
Declared In
NSString+RNTextStatistics.haverageSyllablesPerWord
Get the average number of syllables per word in a string.
- (float)averageSyllablesPerWordDeclared In
NSString+RNTextStatistics.haverageWordsPerSentence
Get the average number of words per sentence in a string
- (float)averageWordsPerSentenceDeclared In
NSString+RNTextStatistics.hcleanText
Clean the text of non-alphanumeric characters, clean terminators, and remove newlines.
- (NSString *)cleanTextDeclared In
NSString+RNTextStatistics.hcolemanLiauIndex
Get the Coleman Liau Index for a string of text.
- (float)colemanLiauIndexSee Also
Declared In
NSString+RNTextStatistics.hfleschKincaidGradeLevel
Get the Flesch Kincaid Grade Level for a string of text.
- (float)fleschKincaidGradeLevelSee Also
Declared In
NSString+RNTextStatistics.hfleschKincaidReadingEase
Get the Flesch Kincaid Reading Ease for a string of text.
- (float)fleschKincaidReadingEaseSee Also
Declared In
NSString+RNTextStatistics.hgunningFogIndex
Get the Gunning Fog Index for a string of text.
- (float)gunningFogIndexSee Also
Declared In
NSString+RNTextStatistics.hletterCount
Get the total number of alphabetical characters in a string.
- (NSInteger)letterCountDeclared In
NSString+RNTextStatistics.hpercentageWordsWithThreeSyllablesWithProperNouns:
Get the percentage of words with at least 3 syllables in a string.
- (float)percentageWordsWithThreeSyllablesWithProperNouns:(BOOL)countProperNounsParameters
- countProperNouns
Decide if proper nouns should be counted as words
See Also
– wordsWithThreeSyllablesWithProperNouns: Returned value is between 0 and 1.
Declared In
NSString+RNTextStatistics.hsentenceCount
Get the total number of sentences in a string.
- (NSInteger)sentenceCountDeclared In
NSString+RNTextStatistics.hsmogIndex
Get the SMOG Index for a string of text.
- (float)smogIndexSee Also
Declared In
NSString+RNTextStatistics.hsyllableCount
Get the total number of syllables in a word string.
- (NSInteger)syllableCountSee Also
Declared In
NSString+RNTextStatistics.hsyllableTotal
Get the total number of syllables in a string.
- (NSInteger)syllableTotalSee Also
Declared In
NSString+RNTextStatistics.hwordCount
Get the total number of words in a string.
- (NSInteger)wordCountDeclared In
NSString+RNTextStatistics.hwordsWithThreeSyllablesWithProperNouns:
Get the total number of words with at least 3 syllables in a string.
- (NSInteger)wordsWithThreeSyllablesWithProperNouns:(BOOL)countProperNounsParameters
- countProperNouns
Decide if proper nouns should be counted as words
Declared In
NSString+RNTextStatistics.h