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 samsung smart glasses android authority gemini adobe premiere anthropic data centers galaxy s27 ultra battersea power station
View all today's topics →