Tongue
Språkidentifiering på enheten som namnger språket i några få ord, bland 84 språk, på tiotals mikrosekunder.

Demo
Känn igen språket utifrån 3 ord.
”kann ich das haben” är tyska. ”안녕하세요” är koreanska. Tre ord är det svåra fallet, och tre ord är precis vad en sökruta ger dig.
Från tre ord når Tongue 0,933 där en detektor på 293 MB når 0,887. Tongue är 2 MB och arbetar i två steg: vissa skriftsystem hör till ett enda språk, hangul är koreanska och thai är thai, avgjort utan modell. Resten går till modellen.
Tongue behöver ingen tokenizer, ingen ordförrådsfil och ingen inferensruntime, vilket är hur hela paketet får plats på 2 MB. När indata är för kort för att avgöra rapporterar Tongue oavgjort.
0,933 från en modell på 2 MB.
Med sina 2 MB når Tongue 0,933 på treordsindata från FLORES-200, mot 0,887 för en detektor på 293 MB.
Uppmätt på de levererade int8-vikterna över tre publika benchmarks, med de andra detektorerna körda på identiska rader och språkdelmängder. Fullständiga tabeller och felmoder finns på modellkortet.
Användningsfall
Känn igen språket utifrån 3 ord.
Dirigera text efter språk
Välj rätt översättningsmodell, analysator eller supportkö redan från de första orden en användare skriver, helt på enheten.
Tangentbord och inmatning
Upptäck språket mitt i meningen för att växla autokorrigering, förslag eller layout, till en kostnad av några tiotal mikrosekunder per tangenttryckning.
Sök och innehållspipelines
Märk korta strängar med språk före indexering eller moderering, utan nätverksanrop och utan någon tjänst som tar betalt per förfrågan.
Be om mer text i stället för att gissa
”la casa” kan lika gärna vara italienska som spanska. Tongue rapporterar oavgjort, så att din produkt väntar på ytterligare ett ord i stället för att byta tangentbord av misstag.
Inspiration
Idéer att bygga med Tongue. Kopiera en prompt till din kodningsagent och kör.
Route incoming messages to the right language agent.
Use Desert Ant's Tongue to identify the language of an incoming message from a few words, on-device, and route it to the right support queue, model, or translation path. Build it with the Desert Ant SDK. Tongue (Swift, Kotlin, JavaScript / TypeScript). Install and API: https://desertant.com/docs/tongue/. Install: SwiftPM desert-ant-core; Maven ai.desertant:tongue:3.1.0; npm i @desert-ant-labs/tongue. SDK source: https://github.com/Desert-Ant-Labs/desert-ant-core. Machine-readable catalog of every model and SDK: https://desertant.com/llms.txt.
Auto-switch the keyboard and spellcheck to the language being typed.
In a text field, run Desert Ant's Tongue on the first words to detect the language and switch keyboard, spellcheck, and autocorrect to match, in microseconds, on-device. Build it with the Desert Ant SDK. Tongue (Swift, Kotlin, JavaScript / TypeScript). Install and API: https://desertant.com/docs/tongue/. Install: SwiftPM desert-ant-core; Maven ai.desertant:tongue:3.1.0; npm i @desert-ant-labs/tongue. SDK source: https://github.com/Desert-Ant-Labs/desert-ant-core. Machine-readable catalog of every model and SDK: https://desertant.com/llms.txt.
Tag user posts by language for search and moderation.
Use Desert Ant's Tongue to label each user post with its language on-device, so search, ranking, and moderation can branch by language without a server call. Build it with the Desert Ant SDK. Tongue (Swift, Kotlin, JavaScript / TypeScript). Install and API: https://desertant.com/docs/tongue/. Install: SwiftPM desert-ant-core; Maven ai.desertant:tongue:3.1.0; npm i @desert-ant-labs/tongue. SDK source: https://github.com/Desert-Ant-Labs/desert-ant-core. Machine-readable catalog of every model and SDK: https://desertant.com/llms.txt.
Detect the language, then redact PII in that language.
Run Desert Ant's Tongue to detect a message's language, then Redact to strip PII with the right language coverage, both on-device. Build it with the Desert Ant SDK. Tongue (Swift, Kotlin, JavaScript / TypeScript). Install and API: https://desertant.com/docs/tongue/. Redact (Swift, Kotlin, JavaScript / TypeScript). Install and API: https://desertant.com/docs/redact/. SDK source: https://github.com/Desert-Ant-Labs/desert-ant-core. Machine-readable catalog of every model and SDK: https://desertant.com/llms.txt.
Detect the language of a search query and pick the right index.
Run Desert Ant's Tongue on a search query on-device to route it to the right language index or analyzer, in microseconds. Build it with the Desert Ant SDK. Tongue (Swift, Kotlin, JavaScript / TypeScript). Install and API: https://desertant.com/docs/tongue/. Install: SwiftPM desert-ant-core; Maven ai.desertant:tongue:3.1.0; npm i @desert-ant-labs/tongue. SDK source: https://github.com/Desert-Ant-Labs/desert-ant-core. Machine-readable catalog of every model and SDK: https://desertant.com/llms.txt.
Build an OpenClaw skill that tags and language-routes text.
Write an OpenClaw skill that runs Desert Ant's Tongue to detect a text's language and Gist to tag its topics, on-device, so an agent can route content without a server call. Build it with the Desert Ant SDK. Tongue (Swift, Kotlin, JavaScript / TypeScript). Install and API: https://desertant.com/docs/tongue/. Gist (Swift, Kotlin, JavaScript / TypeScript). Install and API: https://desertant.com/docs/gist/. SDK source: https://github.com/Desert-Ant-Labs/desert-ant-core. Machine-readable catalog of every model and SDK: https://desertant.com/llms.txt.
A chat bot that tags and language-routes messages, in Node.
Build a Slack or Discord bot that runs Desert Ant's Tongue and Gist in Node to detect each message's language and topic and route it, with no third-party classification service. Build it with the Desert Ant SDK. Tongue (Swift, Kotlin, JavaScript / TypeScript). Install and API: https://desertant.com/docs/tongue/. Gist (Swift, Kotlin, JavaScript / TypeScript). Install and API: https://desertant.com/docs/gist/. SDK source: https://github.com/Desert-Ant-Labs/desert-ant-core. Machine-readable catalog of every model and SDK: https://desertant.com/llms.txt.
Build an agent skill that tags and language-routes text for an agent.
Write a SKILL.md agent skill that runs Desert Ant's Tongue to detect a text's language and Gist to tag its topics, on-device, so the agent can route or filter content without a server call. Build it with the Desert Ant SDK. Tongue (Swift, Kotlin, JavaScript / TypeScript). Install and API: https://desertant.com/docs/tongue/. Gist (Swift, Kotlin, JavaScript / TypeScript). Install and API: https://desertant.com/docs/gist/. SDK source: https://github.com/Desert-Ant-Labs/desert-ant-core. Machine-readable catalog of every model and SDK: https://desertant.com/llms.txt.
Vad modellen gör
- 84 språk: 59 avkodas av modellen och 25 avgörs enbart av skriften.
- 2 MB int8-vikter, medföljer i paketet; inget laddas ned.
- Några tiotal mikrosekunder per detektering, på huvudtråden.
- Identiska svar i Swift, Kotlin och JavaScript, verifierade mot gemensamma golden vectors.
- Rapporterar ett tillförlitlighetsvärde och markerar varje oavgjort läge.
Kom igång
Lägg till språkidentifiering i din iOS or macOS, Android or web-app med några rader kod. Tongue-dokumentation.
// Swift Package Manager
.package(url: "https://github.com/Desert-Ant-Labs/desert-ant-core", from: "3.1.0")
// target dependency
.product(name: "Tongue", package: "desert-ant-core")
import Tongue
let tongue = try Tongue()
tongue.detect("kann ich das haben").language
// "de"
Add Tongue from Desert Ant Labs to this Swift project (iOS, macOS). What it does: språkidentifiering på enheten. SDK: Swift (iOS, macOS) Repo: https://github.com/Desert-Ant-Labs/desert-ant-core#readme // Swift Package Manager .package(url: "https://github.com/Desert-Ant-Labs/desert-ant-core", from: "3.1.0") // target dependency .product(name: "Tongue", package: "desert-ant-core") Reference: - Model page: https://desertant.com/models/tongue/ - Full catalog and other models: https://desertant.com/llms.txt Add the SDK, then follow its README for the exact API and current version. Do not invent API names or method signatures; confirm them against the README.
// build.gradle.kts (Maven Central)
implementation("ai.desertant:tongue:3.1.0")
import ai.desertant.tongue.Tongue
val tongue = Tongue.bundled(context)
tongue.detect("kann ich das haben").language
// "de"
Add Tongue from Desert Ant Labs to this Kotlin project (Android).
What it does: språkidentifiering på enheten.
SDK:
Kotlin (Android)
Repo: https://github.com/Desert-Ant-Labs/desert-ant-core#readme
// build.gradle.kts (Maven Central)
implementation("ai.desertant:tongue:3.1.0")
Reference:
- Model page: https://desertant.com/models/tongue/
- Full catalog and other models: https://desertant.com/llms.txt
Add the SDK, then follow its README for the exact API and current version. Do not invent API names or method signatures; confirm them against the README.
npm i @desert-ant-labs/tongue
import { Tongue } from "@desert-ant-labs/tongue";
const tongue = await Tongue.load();
tongue.detect("kann ich das haben").language;
// "de"
Add Tongue from Desert Ant Labs to this JavaScript / TypeScript project (Web, Node.js). What it does: språkidentifiering på enheten. SDK: JavaScript / TypeScript (Web, Node.js) Repo: https://github.com/Desert-Ant-Labs/desert-ant-core#readme npm i @desert-ant-labs/tongue Reference: - Model page: https://desertant.com/models/tongue/ - Full catalog and other models: https://desertant.com/llms.txt Add the SDK, then follow its README for the exact API and current version. Do not invent API names or method signatures; confirm them against the README.
Specifikationer
- Språk
- 84, i 31 skriftsystem
- Storlek på enheten
- 2 MB int8-vikter, i paketet
- Hastighet
- Några tiotal mikrosekunder per detektering
- Modell
- Skriftrouter plus hashade tecken-n-gram till ett linjärt int8-huvud
Ett eller två ord går ofta inte att avgöra, och ingen modellstorlek löser problemet. Tongue rapporterar oavgjort eller ett preliminärt svar, så behandla låg tillförlitlighet som ”okänt”, inte som ett svar.
Malajiska och indonesiska delar för mycket ordförråd för att skiljas åt på ett kort stickprov. Mongoliska täcks endast i den traditionella skriften, så kyrillisk mongoliska läses som ryska.
Varumärkesnamn, siffror och kod är inte språk, och får en gissning.
Vanliga frågor
Vad är Tongue?
Språkidentifiering på enheten som namnger språket i några få ord, bland 84 språk, på tiotals mikrosekunder.
Körs Tongue lokalt på enheten?
Ja. Tongue körs på enheten, utan något serveranrop, så att data stannar hos användaren.
Vilka plattformar stöder Tongue?
Tongue levereras som en nativ SDK på enheten för Swift, Kotlin, JavaScript / TypeScript.
Vad kostar Tongue?
Varje modell är gratis upp till 100k månadsaktiva enheter per SDK. Obegränsad inferens per användare. Kontakta oss för anpassade licenser.
Hur träffsäker eller snabb är Tongue?
Med sina 2 MB når Tongue 0,933 på treordsindata från FLORES-200, mot 0,887 för en detektor på 293 MB.