CLimT: Classical Language Translator/클림트: 고전어 번역가
CLimT: Classical Language Translator/클림트: 고전어 번역가 · Actions GPT
Integrated Translation and Explanation API
This API integrates Wiktionary for explanations and Google Cloud Translation for translations.
GET /parseParses and explains words or sentences in Korean using Wiktionary.POST /translateTextTranslates specific Korean sentences or words into various languages using Google Cloud Translation.GET /searchSearches Wikipedia for similar proverbs or sayings and provides translations and explanations.
Schéma original API
{
"openapi": "3.0.0",
"info": {
"title": "Integrated Translation and Explanation API",
"description": "This API integrates Wiktionary for explanations and Google Cloud Translation for translations.",
"version": "1.0.0"
},
"servers": [
{
"url": "https://www.mediawiki.org/w/api.php",
"description": "MediaWiki API for Wiktionary"
}
],
"paths": {
"/parse": {
"get": {
"operationId": "parseWord",
"summary": "Parses and explains words or sentences in Korean using Wiktionary.",
"parameters": [
{
"name": "action",
"in": "query",
"description": "MediaWiki action to parse content.",
"required": true,
"schema": {
"type": "string",
"default": "parse"
}
},
{
"name": "page",
"in": "query",
"description": "The word or sentence to parse and explain.",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "A detailed explanation of the given word or sentence in Korean.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"parse": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"pageid": {
"type": "integer"
},
"text": {
"type": "object",
"properties": {
"*": {
"type": "string"
}
}
}
}
}
}
}
}
}
}
}
}
},
"/translateText": {
"post": {
"operationId": "translateText",
"summary": "Translates specific Korean sentences or words into various languages using Google Cloud Translation.",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"q": {
"type": "string",
"description": "The Korean text to translate."
},
"target": {
"type": "string",
"description": "The language to translate into."
},
"format": {
"type": "string",
"default": "text",
"description": "The format of the text."
}
}
}
}
}
},
"responses": {
"200": {
"description": "The translated text in the target language.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"translations": {
"type": "array",
"items": {
"type": "object",
"properties": {
"translatedText": {
"type": "string"
}
}
}
}
}
}
}
}
}
}
}
}
}
},
"/search": {
"get": {
"operationId": "searchProverbs",
"summary": "Searches Wikipedia for similar proverbs or sayings and provides translations and explanations.",
"parameters": [
{
"name": "action",
"in": "query",
"description": "MediaWiki action to search content.",
"required": true,
"schema": {
"type": "string",
"default": "query"
}
},
{
"name": "list",
"in": "query",
"description": "Specify the search type.",
"required": true,
"schema": {
"type": "string",
"default": "search"
}
},
{
"name": "srsearch",
"in": "query",
"description": "The proverb or saying to search for.",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "A list of similar proverbs or sayings found in Wikipedia with translations and explanations.",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"snippet": {
"type": "string"
},
"wordcount": {
"type": "integer"
}
}
}
}
}
}
}
}
}
}
}
}Sefaria Text and Lexicon API
API for retrieving and critiquing translations of Hebrew and Aramaic texts, and providing lexicon entries for Hebrew and Aramaic words with translation capabilities into English and Korean.
GET /texts/{ref}Retrieves the text and other metadata for the text reference string.GET /words/{words}Search for lexicon entries for a given string in Hebrew or Aramaic.
Schéma original API
{
"openapi": "3.0.0",
"info": {
"title": "Sefaria Text and Lexicon API",
"description": "API for retrieving and critiquing translations of Hebrew and Aramaic texts, and providing lexicon entries for Hebrew and Aramaic words with translation capabilities into English and Korean.",
"version": "1.0.0"
},
"servers": [
{
"url": "https://www.sefaria.org/api",
"description": "Main server for Sefaria API"
}
],
"paths": {
"/texts/{ref}": {
"get": {
"operationId": "getText",
"summary": "Retrieves the text and other metadata for the text reference string.",
"parameters": [
{
"name": "ref",
"in": "path",
"required": true,
"description": "The text reference string (e.g., \"Genesis.1\").",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "JSON object containing the requested text and metadata.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TextResponse"
}
}
}
}
}
}
},
"/words/{words}": {
"get": {
"operationId": "searchLexicon",
"summary": "Search for lexicon entries for a given string in Hebrew or Aramaic.",
"parameters": [
{
"name": "words",
"in": "path",
"required": true,
"description": "The Hebrew or Aramaic word(s) to search for.",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "An array of lexicon entries.",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/LexiconEntry"
}
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"TextResponse": {
"type": "object",
"properties": {
"book": {
"type": "string",
"description": "The name of the requested text, normalized to the primary name."
}
}
},
"LexiconEntry": {
"type": "object",
"properties": {
"headword": {
"type": "string"
},
"parent_lexicon": {
"type": "string"
},
"parent_lexicon_details": {
"type": "object"
},
"content": {
"type": "object"
}
},
"required": [
"headword",
"parent_lexicon",
"content"
]
}
}
}
}