Skip to content
Signalcrest
Back to feed
stackoverflowdevtools

How can I split double hyphens in a Python word counter while preserving single hyphens and apostrophes?

Regex technique to split double hyphens while preserving single hyphens in Python.

Steady
Signal score
19
Trajectory
↑ Accelerating
7-day est. ~47

Why this scored 19

every term, weighted
Velocity+0.8 / 40

Engagement gained per hour since the last capture, against the fastest item on its own source

Acceleration+11.6 / 25

Whether that velocity is itself speeding up, as a per-hour rate

Cross-source spread+0.0 / 25

How many independent communities are talking about the same entity

Recency+7.9 / 10

Decays to zero over 14 days

Saturation penalty−1.4 / 30

Subtracted once something is big and old — we rank what's next, not what's peaked

Composite18.8

Weights are hand-tuned, not learned — we're calibrating them against realized trends as history accumulates. On a topic's first sighting there's no previous reading to compare against, so acceleration starts from a neutral prior rather than a measurement, and velocity falls back to engagement over its whole lifetime until a second reading exists. Full methodology

Outlook

low confidence · estimate, not a guarantee

7-day

~47

range 6–59

14-day

~52

range 8–66

30-day

~54

range 5–73

Signal history

7-day window (free)
971

projected trajectory (estimate, not a guarantee)

Entities

python
Embed a live signal badge
Signalcrest signal badge
[![Signalcrest signal](https://www.signalcrest.app/api/badge/so%3A80011903)](https://www.signalcrest.app/topic/so%3A80011903)

Drop this in a README or blog post — it updates automatically as the score moves.