Translating Latin demonology manuals with GPT-4 and Claude
I&#x27;ve been working on a language-learning app, and gpt-4 has made things doable that didn&#x27;t seem to be doable without it. For example, translating to lesser known languages like Cree. Online you can find a dictionary of words, or phrases, but I wasn&#x27;t able to find a translator for arbitrary statements. It&#x27;s not listed on google translate, nor yandex, et al. But, it&#x27;s possible with gpt.<p>My strategy in automated translation is to translate, and then translate back to English. That way we can be <i>fairly</i> sure the translation is accurate. Of course if this app &quot;has wings&quot; I would open source the translations to allow corrections, and&#x2F;or hire native translators for languages I don&#x27;t speak (which is the vast majority of languages).<p>Last tip is that for me, I was able to make a pretty good automated system for this. What I did was spell out a monstrosity of a system-prompt which ensures a few things. One, it will always give me the most descriptive romanization for non-ASCII languages. Two, it will give me output that is essentially .csv data. Three, if it encounters a made up language like Pirate, it will try (and do a pretty good job). The rest is just parsing my final translation file to find prompt&#x2F;language pairs which aren&#x27;t saved yet and piping that to the monstrous prompt which queries for translations.<p>Then you can run a separate program for validation. See if it passes my game of telephone test.<p>This way I and others could learn common phrases in languages which are hard to otherwise access. It even works for dead languages&#x2F;dialects&#x2F;character-voices, etc. For me, it&#x27;s pretty amazing actually. Please note that I never said perfect. But it&#x27;s pretty damn close actually.<p>All in all this workflow allows what would have been unimaginable even two years ago.<p>In doing tests today I found it interesting&#x2F;useful to note how gpt-4 is &quot;thinking&quot; about translating the word &quot;settings&quot;. Here is its thoughts. This is not the exact system prompt I&#x27;m using for my app.<p><pre><code>  system_prompt = &quot;You are an expert in translating lesser-known languages. When translating you will include both the native writing system, and the romanization into the latin alphabet. When you romanize text you always include any accents or pronunciation marks.&quot;

  user_prompt = &quot;Translate the following into Cree. [Hello, goodbye, settings]&quot;

  # Output
  In Cree language, your words will be translated into:

  1. Hello - ᑌᔭᔭᑎ, romanized as &quot;Tānsi&quot;
  2. Goodbye - ᐊᔭᙱᐂᒥᑎ, romanized as &quot;Ayāwāw&quot;

  &quot;Settings&quot; is a bit more complex, because it implies technological context that doesn&#x27;t necessarily have a direct equivalent in Cree. However, a possible option is:

  3. Settings - ᓂᐹᕗᓂᑕᐚᓇᐠ, romanized as &quot;Nipāvunitawānāk&quot;, which might refer to &quot;adjustments&quot;.</code></pre>