Semfont is a typography library that automatically highlights, colors, bolds, and italicizes text based on semantic analysis. It scores each word across four dimensions—valence, salience, surprise, and certainty—using dictionary lookups and contextual rules, then applies a second pass to handle negations and verb relationships across clause boundaries.