Human Translator

A tool that translates between Portuguese and English and corrects grammar, keeping each message’s meaning, tone and personality across languages.

The problem

I work with teams from many nationalities, and most of us communicate in a language that isn’t our first. In that context, a correct translation isn’t enough: a message can be grammatically perfect and still sound stiff, cold or robotic, and that changes how it is received.

Generic translators solve the language, but not the voice. Human Translator was built to close that gap. Its premise is in the subtitle: it should sound like you, not like a machine.


What it does

The tool has two modes:

1. Translate rewrites a message between Brazilian Portuguese and English. The person chooses:

  • Direction: PT → EN or EN → PT
  • Base tone: Informal (for the team) or Slightly formal (for the company)
  • Complementary style: Neutral, Humorous, Serious, Warm, or Direct
  • Additional instructions (optional): audience, terms to keep untranslated, points that must be clear

When the additional instructions conflict with the tone or style, they win. The person writing knows the context better than any preset.

2. Correct grammar fixes grammar, spelling, punctuation and agreement in Portuguese or English, and nothing else.

Informal stays informal, slang stays, the author’s voice stays. A short list of what was changed appears next to the result, so the correction is also a learning opportunity.


How it works

Each selection assembles a set of instructions that is sent to Claude together with the text. The tool’s core lies in how these instructions are written, and three content design decisions shape them.

1. Rewriting, not translating.
The model is asked to write the message the way a native speaker would.

Meaning, facts, names, numbers and intent are preserved; wording and structure are free to change. This is what separates a correct translation from a natural one.

2. Tone defined by rules, not adjectives.
“Informal” alone means little to a model, so each tone is described through observable behavior:

InformalSlightly formal
Spoken forms of each languageComplete, well-structured sentences
Varied sentence length, fragments allowedNo slang or spoken shortcuts
No greeting unless the original has oneOptional short opening or closing line
At most one exclamation markModerate contractions
No stiff phrases (“Just wanted to flag”, “Venho por meio desta”)No corporate jargon (“Please be advised”, “Leverage”)

3. Every style must be perceptible.
Each style has a requirement that can be checked in the output.

Humor has to be noticeable when compared with a neutral version. Serious excludes jokes, emoji and exclamation marks. Direct asks for the shortest version that keeps all the information.

Some rules apply to every translation: no phrases that give away AI writing (“Certainly!”, “I hope this message finds you well”), no content the original doesn’t support, and the speaker’s personality preserved.

Two technical safeguards support this: the user’s text is placed inside delimiters and treated only as content, never as instructions, which protects the tool from text that tries to change its behavior.

After the text, a short reminder restates the target language, tone and style, keeping the output aligned with the selection.


Technology

The tool exists in two equivalent versions: a published page in HTML, CSS and JavaScript, with no framework, and a React component with the same prompts, behavior and interface.

Example of the .jsx code used

Both connect to Claude through the artifact runtime, which sends the prompt to the model and returns the response as it is generated.

What this means in use:

  • The response appears in real time and can be stopped at any point.
  • Errors are explained in plain language, and incomplete responses are flagged.
  • Changing any option clears the previous result, so the screen always matches the settings.

From the first version to the final one

The first version was a React component that called the Anthropic API directly and showed the result only once it was complete.

First version running test

The final version moved to the artifact runtime, so anyone who opens the link in Claude can use it, and added real-time streaming, a stop button, specific error messages and a keyboard shortcut.

Most of the iteration happened in the prompt:

First versionFinal version
Task“A human-sounding translator” writing for SlackRewriting for a native reader; explicitly not literal
Tone and styleGuidanceRequirements, not suggestions
InformalContractions, varied lengthSpoken forms in both languages, fragments, Portuguese phrases to avoid
Slightly formal“Still use contractions”Complete sentences, no slang, moderate contractions
Humor“One subtle touch is enough”Must be noticeable next to a neutral version
NeutralNo style instructionExplicitly: only the base tone applies
Length and paddingTwo separate rulesOne principle: style comes from word choice, not added content

The interface kept its visual identity and gained a full accessibility layer, colors organized as reusable variables, a copy button with a fallback and a simpler footer.


The result

Human Translator turns a recurring, high-stakes task, communicating clearly across languages, into a few choices and a click.

It also shows how much of an AI tool’s quality depends on content design: defining tone through concrete rules, making each option produce a perceptible difference, and protecting the voice of the person who is writing.

Try it yourself

Write a message, pick a tone and see how it sounds in another language.

*The tool uses Claude to generate its output. Due to a platform limitation, an artifact that calls Claude only works for the account that owns it and for people in the same Claude organization.
You’ll be able to view this artifact, but not use it. If you’d like to test how the Artifact works, head to the artifact repository on Github, read the instructions, and enjoy!