English-Sinhala, Sinhala-English Database with more than 100k definitions.
This is an open database anyone can use to find Sinhala definitions for English words and vice versa. This project has a build script you can use to generate databases in different formats (see "Build" section for more information).
- Main input files are in
JavaScript Object Notation (JSON)
format and they are located in the Open Sinhala Database Repository. - They will get automatically downloaded to the
inputs
directory after running the build script. - You can open them using a text editor such as VSCode.
en2sn.json
database contains English-Sinhala definitions.sn2en.json
database contains Sinhala-English definitions.- These are the main files used by build script to generate databases.
This is a part of the build process. But if you want to download input files (databases) without building anything or you want use the latest databases, you can do so by running the following command.
node build.js --d
This will download input files to the inputs
directory.
You can use the build script in this project to automatically generate databases in various formats.
- SQLite
- JSON (Structure is different than input files)
- Install Nodejs.
- Fork this repository.
- Navigate to that directory using your Terminal (or CMD),
- Run
npm install
to install dependencies. - After that run
node build.js -f [formats]
to generate databases.
- Generated files will be placed inside the
outputs
directory.
node build.js -f json //build json files
node build.js -f sqlite //build sqlite database
node build.js -f json sqlite // build json and sqlite databases
- MIT
- You can download this project in zip format.
- You can also clone the project with Git by running,
$ git clone https://github.com/ipmanlk/OSDB-Project.git