Skip to content

haohaaorg/tai-eng-dictionaryAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Tai - Eng easy dictionary API

**API** for Tai to English and English to Tai in easy words.

View Demo · Report Bug · Request Feature

About The Project

// 20211202233858
// https://tai-eng-dictionaryapi.herokuapp.com/api/v1/api_key=NO8p3FC4qMrTzx1RUjRXNXWrqlLa8DkDjmRgt7s9rDE=/eng/apple

{
  "data": [
    {
      "id": 1687,
      "english": "apple",
      "shan": "မၢၵ်ႇၵႅမ်ႈၶွင်ႇ",
      "Antonym": {
        "word_id": 1687,
        "english": "",
        "shan": ""
      },
      "Definition": {
        "word_id": 1687,
        "english": "a round fruit with firm white flesh and a green, red or yellow skin ",
        "shan": "မၢၵ်ႇၵႅမ်ႈၶွင်ႇ ၊ မၢၵ်ႇၶႃႈၶုင်ႉ ။",
        "pos": "Noun",
        "uncount": "( prefix )"
      }
    }
  ]
}

I started this project on my personal purpose, I used the Tai dictionary a lot, to learn and write in Shan words, previously I use taidictionary.com but for some reason, they are out of service now so I start this project. I also develop a website using this api [check it out](https://taidictionary.noernova.com).

This is a very easy Dictionary with a small database ,thanks to https://github.com/saitawngpha for dictionary database, it's may not cover all words and some of the words may not quite well be translated. if you have another big or good database its could be very please, provide your own API, folk this project or direct them to me, anyway might be helpful for everyone.

(back to top)

Built With

(back to top)

Dictionary website

Getting Started

This project currently does not include the Database file due to a third party license.

Prerequisites

Check out Golang website first in case you are not familiar with Golang yet.

Installation

  1. Clone this project
    go get https://github.com/haohaaorg/tai-eng-dictionaryAPI.git
  2.  cd /tai-eng-dictionaryAPI
     
     # API Endpoint http://127.0.0.1:8080/api/v1/api_key=${API_KEY}/eng/:text
     # API Endpoint  http://127.0.0.1:8080/api/v1/api_key=${API_KEY}/shn/:text

(back to top)

Structure

.
├── _test
│   ├── database
│   │   └── tai-eng.db
│   └── endpoints_test.go
├── controllers
│   └── translate.go
├── database
│   └── tai-eng.db
├── favicon.ico
├── go.mod
├── go.sum
├── main.go
└── models
    ├── setup.go
    └── word.go

Usage

This dictionary can translate in Tai to English and English to Shan

# API Endpoint http://127.0.0.1:8080/api/v1/api_key=${API_KEY}/eng/:text
# API Endpoint  http://127.0.0.1:8080/api/v1/api_key=${API_KEY}/shn/:text

(back to top)

Roadmap

See the open issues for a full list of proposed features (and known issues).

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License

Distributed under the GNU License.

(back to top)

Credit

(back to top)

Contributor

NorHsangPha - noernova.com - haohaa.com

(back to top)

About

Easy API for Tai to English and English to Tai dictionary

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages