Skip to content

Latest commit

 

History

History
executable file
·
39 lines (27 loc) · 1.43 KB

README.md

File metadata and controls

executable file
·
39 lines (27 loc) · 1.43 KB

Cultural Translation Tool (CTT)

  • CTT allows translating folders and files of text and Prolog files from one language to another. It is used only with files without filenames as strings in Prolog, so if you are translating an algorithm, use it with individual files that contain the text from your algorithm.
  • Requires ChatGPT API key (from the ChatGPT website) in Daily-Regimen/chatgpt_qa_key.txt.

Prerequisites

  • Please download and install SWI-Prolog for your machine at https://www.swi-prolog.org/build/.

1. Install manually

Download this repository and repositories listed in List-Prolog-Package-Manager/lppm_registry.txt under "Cultural Translation Tool".

2. Or Install from List Prolog Package Manager (LPPM)

mkdir GitHub
cd GitHub/
git clone https://github.com/luciangreen/List-Prolog-Package-Manager.git
cd List-Prolog-Package-Manager
swipl
['lppm'].
lppm_install("luciangreen","culturaltranslationtool").
../
halt.

Running

  • In Shell: cd culturaltranslationtool swipl ['ctt3.pl']. ctt3("source/", "destination/", "English", "French").

  • where "source/" is the source directory or file, "destination/" is the destination directory or file, "English" is the original language (optional) and "French" is the destination language.