conversion_morse
Encode plain text to International Morse Code or decode Morse back to text. Maps A-Z, 0-9, and punctuation to dot/dash patterns.
Instructions
Morse Code Encoder And Decoder. Encode plain text to International Morse Code or decode Morse back to text. Encoding upper-cases input and maps A-Z, 0-9 and common punctuation to dot/dash patterns, joining letters with a single space and words with a slash; unsupported characters become the Morse for a question mark. Decoding splits on the slash for words and spaces for letters and emits a question mark for any unrecognised symbol. Use this for dot-dash signalling; use conversion_braille for tactile braille cells and encoding_decoding_baconian for the A/B Baconian cipher. Runs locally on the supplied text: read-only, non-destructive, offline, no auth, default rate limit. Returns the converted string plus an analysis block (symbol/character counts, ratios) and reference morse_info.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Input to convert: plain text when operation is encode, or a Morse string (dots, dashes, spaces between letters, a slash between words) when operation is decode. Trimmed; must be non-empty. Unsupported text characters encode to the Morse for a question mark; unrecognised Morse tokens decode to a question mark. | |
| operation | Yes | encode converts text to Morse code; decode converts Morse code to text. Required; any other value returns a 400 error. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | No | Whether the conversion succeeded. | |
| result | No | The converted output: Morse code for encode, Latin text for decode. | |
| analysis | No | Per-conversion stats (operation, input_length, output_length, compression_ratio, character_stats, morse_stats: dots, dashes, total_symbols, word_separators, char_separators, dot_dash_ratio); null on error. | |
| morse_info | No | Reference facts (name, description, dot_duration, dash_duration, char_separator, word_separator, supported_chars, inventor, standard, common_uses). | |
| error | No | Error message, present only when success is false. |