Programming Language Detector
Identify the language of a filename-less code snippet: three-tier confidence plus a 0-100 score, explicit data-format verdict, multi-language paste flag, and Linguist-style disambiguation when a filename hint is supplied
forge-linguist-heuristicsv0.1.0github-linguist detection strategy + heuristics.yml rule shape
Workspace
Local or server · same path as API
dev/language-detect0 characters
—
Paste a snippet — the verdict appears as you type.
Runs the same engine as the API. Detection is content-only unless you supply a filename hint; ambiguous extensions (.h .m .pl .fs .ts .cs .r) are routed through their own rules first.
API
forge.dev.language_detectSame contract as the page. Use an authenticated key in production.
curl -X POST 'https://forge.nebutra.com/v1/tools/dev/language-detect/invoke' \
-H 'Authorization: Bearer sk-sailor-…' \
-H 'Content-Type: application/json' \
-d '{
"example": true
}'
