Skip to content
Tech News
clear
Topics: Today This Week This Month This Year

New library 'semfont' auto-styles text based on word meaning and tone

A small JavaScript library called semfont analyzes each word in a passage and automatically applies visual styling—highlighting, coloring, bolding, and italicizing—based on scores it computes for valence, salience, surprise, and certainty. These scores combine dictionary lookups with contextual rules, such as detecting negators, intensifiers, contrast words, and word rarity relative to common English and the surrounding text.

Today's top topics: openai anthropic samsung smart glasses android authority gemini ai agents meta muse techcrunch disrupt 2026 ai safety
View all today's topics →