colorize_uppercase.Rd
This function detects uppercase words, then wraps them with an HTML span. These spans are given the id = ngram, and a color specified by color. The ngram id could be used in css to further customize the style of the highlighted text.
colorize_uppercase(text, color = "red")
text | string of text |
---|---|
color | a color code for html css |
text string of text with css span color set to red for uppercase words