colorize_uppercase: highlight uppercase words

Description Usage Arguments Value

Description

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.

Usage

1
colorize_uppercase(text, color = "red")

Arguments

text

string of text

color

a color code for html css

Value

text string of text with css span color set to red for uppercase words


CrumpLab/playjareyesores documentation built on June 25, 2019, 8:29 a.m.