Skip to main content

A naive word by word translator

Project description


A very simple translator based on a word to word dictionary

(Though this project is designed to convert traditional Chinese to simplified, it owns the ability to do more things.)

Chinese Doc

1. How to Use

1.1 Installation

pip3 install naive_translator

1.2 Use as a package

>>> from naive_translator import translator
>>> translation = translator('豐田的上門女婿和女人')
>>> print(translation)

1.3 Use as a server

To start the server, run the following command

naive_translator 8001

Then you could visit

Url Explanation
http://localhost:8001 A welcome page
http://localhost:8001/dicts List all available dictionaries
http://localhost:8001/translate?dict=&text= Translate


  • Dictionary files are placed in naive_translator/data directory
  • Configure file is naive_translator/

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for naive-translator, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size naive_translator-0.0.1-py3-none-any.whl (37.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size naive_translator-0.0.1.tar.gz (36.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page