Skip to content

elaboration

basic_text_based_elaboration(community, col_n_words='preprocessed_text__n_words', col_n_words_no_stop='preprocessed_text__n_words_no_stop', col_syllables='preprocessed_text__n_syllables', col_avg_syllables='preprocessed_text__avg_syllables_per_word', col_smog_index='preprocessed_text__smog_index', col_auto_readability='preprocessed_text__automated_readability_index', col_coleman_liau='preprocessed_text__coleman_liau_index', col_flesch_kincaid='preprocessed_text__flesch_kincaid_grade_level', col_frac_uppercase='preprocessed_text__frac_uppercase', col_frac_punctuation_marks='preprocessed_text__frac_punctuation_marks')

Provides basic text-based elaboration indicators, such as number of words, number of syllables, and different readability scores.

Parameters:

Name Type Description Default
col_flesch_kincaid 'preprocessed_text__flesch_kincaid_grade_level'
col_coleman_liau 'preprocessed_text__coleman_liau_index'
col_auto_readability 'preprocessed_text__automated_readability_index'
col_smog_index 'preprocessed_text__smog_index'
col_syllables

column name in community.posts to use for mean number

'preprocessed_text__n_syllables'
col_n_words

column name in community.posts to use for word count

'preprocessed_text__n_words'
community required