Desert Ant Labs

Tongue

언어 식별사용 가능

온디바이스 언어 식별. 몇 단어만으로 언어를 짚어냅니다. 84개 언어, 수십 마이크로초.

데모

세 단어면 언어를 알아냅니다.

“kann ich das haben”은 독일어입니다. “안녕하세요”는 한국어입니다. 세 단어가 가장 까다로운 경우이고, 검색창이 건네주는 것이 바로 그 세 단어입니다.

단어 세 개만으로 Tongue은 0.933을 기록하고, 293MB짜리 검출기는 0.887에 그칩니다. Tongue은 2MB이고 두 단계로 동작합니다. 어떤 문자 체계는 한 언어에만 속해서, 한글은 한국어, 타이 문자는 타이어로 모델 없이 결정됩니다. 나머지만 모델로 넘어갑니다.

Tongue은 토크나이저도, 어휘 파일도, 추론 런타임도 필요 없으며, 그래서 패키지 전체가 2MB에 들어갑니다. 입력이 판별하기에 너무 짧으면 Tongue은 동점을 보고합니다.

2MB 모델로 0.933.

2MB 크기로, 세 단어짜리 FLORES-200 입력에서 0.933을 기록합니다. 293MB 검출기는 0.887입니다.

0.933
FLORES-200, 3단어
293MB 검출기의 0.887 대비
0.992
트윗
eld 벤치마크, 9,066개 행
84
언어
2MB
int8 가중치
토크나이저 없음, 런타임 없음

세 가지 공개 벤치마크에서 실제 배포되는 int8 가중치로 측정했으며, 다른 검출기도 동일한 행과 언어 부분집합에서 실행했습니다. 전체 표와 실패 모드는 모델 카드에 있습니다.

활용 사례

세 단어면 언어를 알아냅니다.

언어별 텍스트 라우팅

사용자가 입력한 첫 몇 단어만으로 알맞은 번역 모델, 분석기, 지원 대기열을 고릅니다. 전부 기기 안에서 처리됩니다.

키보드와 입력

문장 중간에 언어를 감지해 자동 교정, 추천, 자판 배열을 전환합니다. 키 입력당 수십 마이크로초면 충분합니다.

검색과 콘텐츠 파이프라인

색인이나 모더레이션 전에 짧은 문자열에 언어를 태깅합니다. 네트워크 왕복도, 요청당 과금 서비스도 필요 없습니다.

추측하는 대신 더 입력받기

“la casa”는 이탈리아어로도 스페인어로도 똑같이 읽힙니다. Tongue는 무승부를 알려 주므로, 제품은 키보드를 잘못 전환하는 대신 단어 하나를 더 기다릴 수 있습니다.

영감

Tongue(으)로 만들 아이디어. 프롬프트를 코딩 에이전트에 복사해 시작하세요.

Tongue

Route incoming messages to the right language agent.

Tongue

Auto-switch the keyboard and spellcheck to the language being typed.

Tongue

Tag user posts by language for search and moderation.

TongueRedact

Detect the language, then redact PII in that language.

Tongue

Detect the language of a search query and pick the right index.

TongueGist

Build an OpenClaw skill that tags and language-routes text.

TongueGist

A chat bot that tags and language-routes messages, in Node.

TongueGist

Build an agent skill that tags and language-routes text for an agent.

모델이 하는 일

  • 84개 언어: 59개는 모델이 해독하고 25개는 문자 체계만으로 확정됩니다.
  • 2MB int8 가중치가 패키지에 내장되어 있으며, 내려받는 것이 없습니다.
  • 감지 한 번에 수십 마이크로초, 메인 스레드에서 실행됩니다.
  • Swift, Kotlin, JavaScript에서 동일한 답. 공유 골든 벡터로 검증됩니다.
  • 신뢰도 점수를 알려 주고, 무승부는 빠짐없이 표시합니다.

시작하기

언어 식별을(를) 몇 줄의 코드로 iOS or macOS, Android or web 앱에 추가하세요. Tongue 문서.

iOS, macOS
설치
// 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")
예제 - Swift
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: 온디바이스 언어 식별.

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.
Android
설치
// build.gradle.kts (Maven Central)
implementation("ai.desertant:tongue:3.1.0")
예제 - Kotlin
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: 온디바이스 언어 식별.

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.
Web, Node.js
설치
npm i @desert-ant-labs/tongue
예제 - TypeScript
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: 온디바이스 언어 식별.

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.

사양

언어
84개, 31개 문자 체계
온디바이스 크기
2MB int8 가중치, 패키지에 내장
속도
감지 한 번에 수십 마이크로초
모델
문자 체계 라우터와 해시된 문자 n-gram을 int8 선형 헤드로

한두 단어는 판별 불가능한 경우가 많고, 모델 크기로는 해결되지 않는 문제입니다. Tongue은 동점이나 잠정적인 답을 보고하므로, 낮은 신뢰도는 답이 아니라 “알 수 없음”으로 다루세요.

말레이어와 인도네시아어는 어휘를 너무 많이 공유해 짧은 표본으로는 가릴 수 없습니다. 몽골어는 전통 문자만 지원하므로, 키릴 몽골어는 러시아어로 읽힙니다.

브랜드명, 숫자, 코드는 언어가 아니어서 추측이 나옵니다.

자주 묻는 질문

Tongue은(는) 무엇인가요?

온디바이스 언어 식별. 몇 단어만으로 언어를 짚어냅니다. 84개 언어, 수십 마이크로초.

Tongue은(는) 온디바이스로 실행되나요?

네. Tongue은(는) 서버 호출 없이 기기에서 실행되므로, 데이터는 사용자의 기기에 그대로 남습니다.

Tongue은(는) 어떤 플랫폼을 지원하나요?

Tongue은(는) Swift, Kotlin, JavaScript / TypeScript용 네이티브 온디바이스 SDK로 제공됩니다.

Tongue의 비용은 얼마인가요?

모든 모델은 SDK당 월간 활성 기기 10만 대까지 무료입니다. 사용자당 추론은 무제한입니다. 맞춤 라이선스는 문의하기 바랍니다.

Tongue은(는) 얼마나 정확하고 빠른가요?

2MB 크기로, 세 단어짜리 FLORES-200 입력에서 0.933을 기록합니다. 293MB 검출기는 0.887입니다.

리소스