KiPulKai Translate API

KiPulKai Translator is a lightweight REST translation API built with NodeJS and Express in TypeScript. KiPulKai is an imaginary language created by Gibcom Multimedia (children’s video game professionals) in the early 2000s for their video game series. Still occasionally used by the community, this API allows for translations from this language into French, and vice versa.

The language uses various rules for writing sentences based on a limited lexicon. One obstacle to creating a translator is that it is necessary to know the synonyms and antonyms of the French words used. To do this, an initial version existed and retrieved this information from public dictionaries using scraping. Unfortunately, this makes the translation quite unreliable.

To overcome this problem, this API is now based on an AI model from OpenAI. Instructions are provided and properly structured to translate and take full advantage of OpenAI features, including optimizing token caching (in the OpenAI sense).

Protections using IP addresses and tokens (in the key sense) limit API usage.

Unit tests were written using Vitest to verify proper operation.

This API is available online, and a Swagger UI page allows users to understand how it works and test examples.

Description