How Document Type Classifier works
Press Load model once: your browser downloads Gemma 4 E2B instruction-tuned (web build) (2.0 GB) from this site and keeps it in its cache. Then add your text and press Classify document. The model runs on this device using your graphics card, so nothing you enter is sent to a server. Until the model is loaded, or if your device cannot run it, the tool falls back to a simple keyword check and labels the result as the fallback.
Gemma 4 E2B instruction-tuned (web build) is a small open language model from Google. The tool sends it the instruction below plus your text, asks for a JSON answer with fixed fields, and shows each field as a card. It runs at temperature 0, so the same input gives the same answer on the same device, though different graphics cards can word it slightly differently.
Inputs longer than 6,000 characters are cut to that length before they reach the model, and the result says so. The model only sees what you paste: it does not look anything up.
The instruction the model gets
You identify what kind of document or snippet the user pasted so it can go to the right parser or review step. Decide its format (JSON, YAML, XML, CSV, SQL, Markdown, HTML, source code and its language, shell script, Dockerfile, log output, stack trace, email or plain prose) and its purpose (API payload, configuration, data export, database query, documentation, contract or policy, error output and so on). Base your answer on syntax and wording you can see, and quote the clues.
What it returns
- Format: The document format, with the programming language if it is code.
- Purpose: What the document is for.
- Clues: Specific syntax or words from the snippet, quoted, that show the format and purpose.
- Send it to: Which parser, linter or review workflow should handle it next.