Skip to content

hoangndst/dictionary-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


icon

Dictionary

Multiple languages dictionary. OOP Project. UET-VNU
Explore the docs
View Demo · Report Bug

Table of Contents
  1. Introduction
  2. Demo Image
  3. Translate API
  4. Database
  5. Libraries
  6. License

Introduction

Dictionary Java project for UET-VNU OOP course. Online dictionary, multi-language support.

Demo Image

Translate Word

Type, pronunciation, definition, synonym, example and audio in English.

GUI Demo

Translate Sentence

GUI Demo

Bookmark

Add and remove bookmark. One word can have multiple bookmark with different language.

bm

Edit Word

Edit word, pronunciation, definition, synonym, example, ...

GUI Demo

Translate API

Results obtained after calling Translate API

{
  "sourceWord": "king",
  "source": "",
  "target": "vi",
  "targetWord": "nhà vua",
  "type": [
    "noun",
    "verb"
  ],
  "definition": [
    "the male ruler of an independent state, especially one who inherits the position by right of birth.",
    "make (someone) king."
  ],
  "example": [
    "King Henry VIII",
    null
  ],
  "synonyms": [
    [
      "ruler",
      "sovereign",
      "monarch",
      "supreme ruler",
      "crowned head",
      "majesty",
      "Crown",
      "head of state",
      "royal personage",
      "emperor",
      "prince",
      "potentate",
      "overlord",
      "liege lord",
      "lord",
      "leader",
      "chief"
    ],
    []
  ],
  "pronounce": "kɪŋ",
  "audio": "//ssl.gstatic.com/dictionary/static/sounds/20200429/king--1_gb_1.mp3"
}

Database

Bookmark data has been stored in SQLite database.

Schema

CREATE TABLE "bookmark" (
  "time"	TEXT,
  "source"	TEXT,
  "target"	TEXT,
  "audio" TEXT,
  "pronounce"	TEXT,
  "type"	TEXT,
  "definition"	TEXT,
  "example"	TEXT,
  "synonyms"	TEXT,
  "targetLang"	TEXT
);

db

Quality offline data was imported from our own API.

db

Libraries

License

MIT