Tongue
Taalherkenning op het apparaat die uit een paar woorden de taal benoemt, uit 84 talen, in tientallen microseconden.

Demo
Herken de taal op basis van 3 woorden.
“kann ich das haben” is Duits. “안녕하세요” is Koreaans. Drie woorden is het lastige geval, en drie woorden is precies wat een zoekveld je geeft.
Uit drie woorden haalt Tongue 0,933 waar een detector van 293 MB op 0,887 blijft. Tongue is 2 MB en werkt in twee stappen: sommige schriften horen bij één taal, Hangul is Koreaans en Thai is Thai, beslist zonder model. De rest gaat naar het model.
Tongue heeft geen tokenizer, woordenlijst of inference-runtime nodig, en zo past het hele pakket in 2 MB. Als de invoer te kort is om te beslissen, meldt Tongue een gelijkspel.
0,933 uit een model van 2 MB.
Met 2 MB scoort Tongue 0,933 op FLORES-200-invoer van drie woorden, tegenover 0,887 voor een detector van 293 MB.
Gemeten op de geleverde int8-gewichten over drie publieke benchmarks, met de andere detectoren op identieke rijen en taalsubsets. Volledige tabellen en faalwijzen staan op de model card.
Toepassingen
Herken de taal op basis van 3 woorden.
Tekst routeren op taal
Kies het juiste vertaalmodel, de juiste analyzer of de juiste supportwachtrij vanaf de eerste woorden die een gebruiker typt, volledig op het apparaat.
Toetsenborden en invoer
Detecteer de taal midden in een zin om autocorrectie, suggesties of indelingen te wisselen, voor tientallen microseconden per aanslag.
Zoeken en contentpipelines
Voorzie korte strings van een taal vóór indexering of moderatie, zonder netwerkverkeer of een dienst per verzoek.
Vraag om meer tekst in plaats van te gokken
“la casa” kan net zo goed Italiaans als Spaans zijn. Tongue meldt het gelijkspel, zodat je product op nog een woord wacht in plaats van per ongeluk van toetsenbord te wisselen.
Inspiratie
Ideeën om te bouwen met Tongue. Kopieer een prompt naar je coding-agent en ga.
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.
Wat het model doet
- 84 talen: 59 gedecodeerd door het model, 25 beslist door het schrift alleen.
- 2 MB aan int8-gewichten, meegeleverd in het pakket; er wordt niets gedownload.
- Tientallen microseconden per detectie, op de main thread.
- Identieke antwoorden op Swift, Kotlin en JavaScript, geborgd door gedeelde golden vectors.
- Geeft een betrouwbaarheidsscore en markeert elk gelijkspel.
Aan de slag
Voeg taalherkenning toe aan je iOS or macOS, Android or web-app in een paar regels code. Tongue docs.
// 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: on-device taalherkenning. 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: on-device taalherkenning.
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: on-device taalherkenning. 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.
Specs
- Talen
- 84, over 31 schriften
- Grootte op het apparaat
- 2 MB int8-gewichten, in het pakket
- Snelheid
- Tientallen microseconden per detectie
- Model
- Script-router plus gehashte teken-n-grams naar een lineaire int8-head
Eén of twee woorden zijn vaak niet te beslissen, en geen modelgrootte lost dat op. Tongue meldt dan een gelijkspel of een voorzichtig antwoord, dus behandel lage betrouwbaarheid als “onbekend”, niet als een antwoord.
Maleis en Indonesisch delen te veel woordenschat om op een korte steekproef te scheiden. Mongools wordt alleen in het traditionele schrift gedekt, dus Cyrillisch Mongools wordt als Russisch gelezen.
Merknamen, getallen en code zijn geen taal en krijgen een gok.
FAQ
Wat is Tongue?
Taalherkenning op het apparaat die uit een paar woorden de taal benoemt, uit 84 talen, in tientallen microseconden.
Draait Tongue op het apparaat?
Ja. Tongue draait op het apparaat, zonder serveraanroep, dus de data blijft bij de gebruiker.
Welke platforms ondersteunt Tongue?
Tongue wordt geleverd als een native on-device SDK voor Swift, Kotlin, JavaScript / TypeScript.
Hoeveel kost Tongue?
Elk model is gratis voor maximaal 100k maandelijks actieve apparaten per SDK. Onbeperkte inference per gebruiker. Neem contact op voor aangepaste licenties.
Hoe nauwkeurig of snel is Tongue?
Met 2 MB scoort Tongue 0,933 op FLORES-200-invoer van drie woorden, tegenover 0,887 voor een detector van 293 MB.