https://github.com/ipmanlk/OSDB-Project
English-Sinhala, Sinhala-English Database with more than 100k definitions.
https://github.com/ipmanlk/OSDB-Project
english-language english-sinhala sinhala-definitions sinhala-dictionary sinhala-language sri-lanka
Last synced: about 1 month ago
JSON representation
English-Sinhala, Sinhala-English Database with more than 100k definitions.
- Host: GitHub
- URL: https://github.com/ipmanlk/OSDB-Project
- Owner: ipmanlk
- License: mit
- Created: 2017-07-29T04:07:48.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-07-12T03:05:18.000Z (almost 2 years ago)
- Last Synced: 2024-11-12T18:41:21.220Z (7 months ago)
- Topics: english-language, english-sinhala, sinhala-definitions, sinhala-dictionary, sinhala-language, sri-lanka
- Language: JavaScript
- Homepage:
- Size: 5.4 MB
- Stars: 13
- Watchers: 2
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OSDB Project
*English-Sinhala, Sinhala-English Database with more than 100k definitions.*## Information
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).## Files
- Main input files are in ```JavaScript Object Notation (JSON)``` format and they are located in the [Open Sinhala Database Repository](https://github.com/ipmanlk/OSDB).
- 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.## Download main input files (optional)
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.## Build
You can use the build script in this project to automatically generate databases in various formats.### Currently supported formats,
- SQLite
- JSON (Structure is different than input files)### Building Instructions
1. Install Nodejs.
1. Fork this repository.
1. Navigate to that directory using your Terminal (or CMD),
1. Run ```npm install``` to install dependencies.
1. After that run ```node build.js -f [formats]``` to generate databases.
- Generated files will be placed inside the ```outputs``` directory.#### Examples
```javascript
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
```## Compatible Fonts (for Sinhala definitions)
- [Iskoola Pota](http://www.sinhalafonts.org/fonts/13091/iskoola_potha_unicode.html)
- [Malithi Web](http://www.sinhalafonts.org/fonts/13092/malithi_web.html)## License
- MIT## Contact
- [email protected]## Download
1. You can download this project in zip format.
2. You can also clone the project with Git by running,```git
$ git clone https://github.com/ipmanlk/OSDB-Project.git
```