Analyze and Translate: AI App for Contextual Translation and Review_GPT-4o
Description
This combination of AI apps allows for the analysis and translation of text. It follows a step-by-step process to analyze the context, identify text type, target audience, tone, and cultural elements. The text is then preprocessed and key terms and idioms are extracted. Next, the translation occurs by translating each sentence and refining it based on the text type and audience. Cultural elements are adapted, and a final translation is generated. Quality check is performed, and if needed, revisions are made. The resulting translation is then provided.
Workflow
Input:
VAR_1Split Method:
token
Chunk Size:
4000 tokens
Output:
1: Split TextInput:
1: Split TextInternal Module:
Korean Text Translation Analysis Framework
Model: gpt-4o
```pseudo
function analyze_and_translate(input):
// Step 1: Context Analysis
context = extract_context(input)
text_type = identify_text_type(input)
audience = identify_target_audience(input)
tone = determine_tone(input)
cultural_elements = identify_cultural_elements(input)
// Step 2: Preparatory Processing
preprocessed_text = preprocess(input)
terms = extract_key_terms(preprocessed_text)
idioms = identify_idioms(preprocessed_text)
// Step 3: Translation
translation = initialize_translation()
for sentence in preprocessed_text:
translated_sentence = translate_sentence(sentence, context, tone)
translation.append(translated_sentence)
// Step 4: Post-processing
refined_translation = refine_translation(translation, text_type, audience)
cultural_adaptations = adapt_cultural_elements(refined_translation, cultural_elements)
final_translation = apply_adaptations(refined_translation, cultural_adaptations)
// Step 5: Quality Check
if quality_check(final_translation, input):
return final_translation
else:
return revise_translation(final_translation, input)
// Main Execution
korean_text = input
english_translation = analyze_and_translate(korean_text)
// Output
print "Context Analysis:"
print context, text_type, audience, tone, cultural_elements
print "English Translation:"
print english_translation
```
Provide your translation and explanatory notes based on the pseudo-code algorithm above.
Output:
2: Loop / ReduceInformation
Creator: Sung Lee
80
Runs
0
Bookmarks
16335.00s
Avg. Time
$0.05
Avg. Cost
Examples (0)