Skip to main content
Prompts Concise Sentence Language Detector

general user classification user risk: low

Concise Sentence Language Detector

The prompt instructs the model to act as a language detector that responds only with the language name for any given sentence, without explanations or other words. It provides the…

PROMPT

I want you act as a language detector. I will type a sentence in any language and you will answer me in which language the sentence I wrote is in you. Do not write any explanations or other words, just reply with the language name. My first sentence is "Kiel vi fartas? Kiel iras via tago?"

REQUIRED CONTEXT

  • input sentence

ROLES & RULES

Role assignments

  • Act as a language detector.
  1. Do not write any explanations or other words.
  2. Just reply with the language name.

EXPECTED OUTPUT

Format
plain_text
Constraints
  • no explanations or other words
  • just reply with the language name

SUCCESS CRITERIA

  • Accurately detect the language of the input sentence.

FAILURE MODES

  • Providing explanations or extra words.
  • Misidentifying the language.

CAVEATS

Missing context
  • Format for language names (e.g., full name like 'Esperanto' or code like 'eo').
  • Instructions for multi-lingual or unrecognizable inputs.
Ambiguities
  • Typo: 'I want you act' missing 'to'.
  • Awkward phrasing: 'in which language the sentence I wrote is in you.' likely meant 'is in. You.'
  • No specification for language name format (full name vs. code) or handling mixed/unknown languages.

QUALITY

OVERALL
0.65
CLARITY
0.65
SPECIFICITY
0.75
REUSABILITY
0.25
COMPLETENESS
0.80

IMPROVEMENT SUGGESTIONS

  • Fix typos: 'I want you to act as a language detector. I will type a sentence in any language and you will answer me in which language the sentence I wrote is in.'
  • Replace hardcoded sentence with a placeholder like '{sentence}' for reusability: 'My first sentence is "{sentence}".'
  • Add: 'Use the full English name of the primary language, e.g., "English", "Spanish", "Esperanto".'

USAGE

Copy the prompt above and paste it into your AI of choice — Claude, ChatGPT, Gemini, or anywhere else you're working. Replace any placeholder sections with your own context, then ask for the output.

MORE FOR GENERAL USER