reddit_tags module
- features.reddit_tags.count_all_caps(text)
The number of all-caps words in the input text.
- Parameters:
text (str) – The input text to be analyzed.
- Returns:
The number of all-caps words in the input text.
- Return type:
int
- features.reddit_tags.count_bullet_points(text)
Returns the number of bullet points in a message starting with asterisks or dashes.
- Parameters:
text (str) – The input text to be analyzed.
- Returns:
The number of bullet points in the input text.
- Return type:
int
- features.reddit_tags.count_ellipses(text)
Returns the number of ellipses (three or more consecutive dots) in a message.
- Parameters:
text (str) – The input text to be analyzed.
- Returns:
The number of ellipses in the input text.
- Return type:
int
- features.reddit_tags.count_emojis(text)
Returns the number of instances of emojis in a message.
- Parameters:
text (str) – The input text to be analyzed.
- Returns:
The number of emojis in the input text.
- Return type:
int
- features.reddit_tags.count_emphasis(text)
Returns the number of bolded, italicized, or *bolded and italicized* words in a message.
- Parameters:
text (str) – The input text to be analyzed.
- Returns:
The number of emphasized words in the input text.
- Return type:
int
- features.reddit_tags.count_line_breaks(text)
Returns the number of paragraphs / line breaks in a message.
- Parameters:
text (str) – The input text to be analyzed.
- Returns:
The number of line breaks in the input text.
- Return type:
int
- features.reddit_tags.count_links(text)
Returns the number of links in a message.
- Parameters:
text (str) – The input text to be analyzed.
- Returns:
The number of links in the input text.
- Return type:
int
- features.reddit_tags.count_numbering(text)
Returns the number of numberings in a message, indicated by a format like “1. “.
- Parameters:
text (str) – The input text to be analyzed.
- Returns:
The number of numbered lists in the input text.
- Return type:
int
- features.reddit_tags.count_parentheses(text)
Returns the number of instances of text enclosed in parentheses in a message (includes nested parentheses).
- Parameters:
text (str) – The input text to be analyzed.
- Returns:
The number of parenthetical texts in the input text.
- Return type:
int
- features.reddit_tags.count_quotes(text)
Returns the number instances of text enclosed in quotation marks in a message.
- Parameters:
text (str) – The input text to be analyzed.
- Returns:
The number of quoted texts in the input text.
- Return type:
int
- features.reddit_tags.count_responding_to_someone(text)
Returns the number of block quote responses, indicating if the message is quoting someone else by “>” or “>”.
- Parameters:
text (str) – The input text to be analyzed.
- Returns:
The number of block quote responses in the input text.
- Return type:
int
- features.reddit_tags.count_user_references(text)
Returns the number of user references in a message, indicated by format u/username.
- Parameters:
text (str) – The input text to be analyzed.
- Returns:
The number of user references in the input text.
- Return type:
int