Se

Semantic Primitives- TypeScript types that understand natural language

Hacker News

Semantic Primitives- TypeScript types that understand natural language

Weekend project exploring what TypeScript looks like when small, fast LLMs are cheap enough to embed at the type level. // Parse natural language await SemanticNumber.from("about a dozen") // 12 await SemanticDate.from("next Monday") // 2025-02-03 await SemanticBoolean.from("yeah I guess so") // true, confidence: 0.7 // Classify and validate with plain English await message.classify(['question', 'complaint', 'feedback', 'request']) await input.validate(["must be valid email", "must not contain profanity"]) // Context-aware operations SemanticNumber.from(150).isReasonable("human age") // { reasonable: false, explanation: "Human age rarely exceeds 120" } // Same error, different audiences error.explain("end-user") // "We couldn't connect. Check your internet." error.explain("developer") // "ECONNREFUSED on port 5432..." 15+ types: boolean, number, string, array, date, error, URL, promise, map, set, etc. Alpha—feedback welcome on what feels useful vs gimmicky. https://github.com/elicollinson/semantic-primitives

Share card

Actual performance

1points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Product HuntOn track for Day 1 leaderboard · Strong signals: user, email, context · Missing: mac, agents, macos
71%71% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Indie HackersFits the IH revenue-focused audience · Missing: supports, reddit linkedin, podcasting
62%62% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
Hacker NewsStrong engagement from HN community · Strong signals: ide, io · Missing: https docs, excited, just released
56%56% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
TrustMRRLess likely to generate early MRR · Missing: mobile apps, ios, personal
37%37% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
28%28% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Strong signals: arr · Missing: mrr, revenue, profit
18%18% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
1%1% predicted probability of success on BetaList, based on ML models trained on real launch data.

Incorrect prediction on native model

Similar products

Se
Semantic Versioning for Natural Language58%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Semantic Versioning for Natural Language

Hacker News8
A
A C-style language interpreter implemented by the TypeScript types46%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A C-style language interpreter implemented by the TypeScript types

Hacker News2
Nu
Nullable Types in TypeScript46%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Nullable Types in TypeScript

Hacker News1
Na
Natural Language Querying43%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Natural Language Querying

Hacker News17
Sh
Show HN - Personal Knowledge Store with Natural Language Semantic Search65%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Show HN - Personal Knowledge Store with Natural Language Semantic Search

Hacker News1
Br
Brainfuck interpreter using TypeScript types45%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Brainfuck interpreter using TypeScript types

Hacker News2
Wi
Wit – Natural language for your app45%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Wit – Natural language for your app

Hacker News321
AI
AI Anime Finder – Natural language semantic search for AniList52%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

AI Anime Finder – Natural language semantic search for AniList

Hacker News5
Th
The TypeScript Semantic Layer for ClickHouse57%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

The TypeScript Semantic Layer for ClickHouse

Hacker News8
Ty
TySON – TypeScript as a Configuration Language51%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

TySON – TypeScript as a Configuration Language

Hacker News4