NSString(RNTextStatistics) Category Reference
Declared in | NSString+RNTextStatistics.h |
Tasks
Readability Tests
-
– fleschKincaidReadingEase
Get the Flesch Kincaid Reading Ease for a string of text.
-
– fleschKincaidGradeLevel
Get the Flesch Kincaid Grade Level for a string of text.
-
– gunningFogIndex
Get the Gunning Fog Index for a string of text.
-
– colemanLiauIndex
Get the Coleman Liau Index for a string of text.
-
– smogIndex
Get the SMOG Index for a string of text.
-
– automatedReadabilityIndex
Get the Automated Readability Index for a string of text.
Counting
-
– letterCount
Get the total number of alphabetical characters in a string.
-
– wordCount
Get the total number of words in a string.
-
– sentenceCount
Get the total number of sentences in a string.
-
– syllableCount
Get the total number of syllables in a word string.
-
– syllableTotal
Get 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.
-
– averageSyllablesPerWord
Get the average number of syllables per word in a string.
-
– averageWordsPerSentence
Get the average number of words per sentence in a string
Utilities
-
– cleanText
Clean 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)automatedReadabilityIndex
See Also
Declared In
NSString+RNTextStatistics.h
averageSyllablesPerWord
Get the average number of syllables per word in a string.
- (float)averageSyllablesPerWord
Declared In
NSString+RNTextStatistics.h
averageWordsPerSentence
Get the average number of words per sentence in a string
- (float)averageWordsPerSentence
Declared In
NSString+RNTextStatistics.h
cleanText
Clean the text of non-alphanumeric characters, clean terminators, and remove newlines.
- (NSString *)cleanText
Declared In
NSString+RNTextStatistics.h
colemanLiauIndex
Get the Coleman Liau Index for a string of text.
- (float)colemanLiauIndex
See Also
Declared In
NSString+RNTextStatistics.h
fleschKincaidGradeLevel
Get the Flesch Kincaid Grade Level for a string of text.
- (float)fleschKincaidGradeLevel
See Also
Declared In
NSString+RNTextStatistics.h
fleschKincaidReadingEase
Get the Flesch Kincaid Reading Ease for a string of text.
- (float)fleschKincaidReadingEase
See Also
Declared In
NSString+RNTextStatistics.h
gunningFogIndex
Get the Gunning Fog Index for a string of text.
- (float)gunningFogIndex
See Also
Declared In
NSString+RNTextStatistics.h
letterCount
Get the total number of alphabetical characters in a string.
- (NSInteger)letterCount
Declared In
NSString+RNTextStatistics.h
percentageWordsWithThreeSyllablesWithProperNouns:
Get the percentage of words with at least 3 syllables in a string.
- (float)percentageWordsWithThreeSyllablesWithProperNouns:(BOOL)countProperNouns
Parameters
- countProperNouns
Decide if proper nouns should be counted as words
See Also
– wordsWithThreeSyllablesWithProperNouns: Returned value is between 0 and 1.
Declared In
NSString+RNTextStatistics.h
sentenceCount
Get the total number of sentences in a string.
- (NSInteger)sentenceCount
Declared In
NSString+RNTextStatistics.h
smogIndex
Get the SMOG Index for a string of text.
- (float)smogIndex
See Also
Declared In
NSString+RNTextStatistics.h
syllableCount
Get the total number of syllables in a word string.
- (NSInteger)syllableCount
See Also
Declared In
NSString+RNTextStatistics.h
syllableTotal
Get the total number of syllables in a string.
- (NSInteger)syllableTotal
See Also
Declared In
NSString+RNTextStatistics.h
wordCount
Get the total number of words in a string.
- (NSInteger)wordCount
Declared In
NSString+RNTextStatistics.h
wordsWithThreeSyllablesWithProperNouns:
Get the total number of words with at least 3 syllables in a string.
- (NSInteger)wordsWithThreeSyllablesWithProperNouns:(BOOL)countProperNouns
Parameters
- countProperNouns
Decide if proper nouns should be counted as words
Declared In
NSString+RNTextStatistics.h