Coder Social home page Coder Social logo

ipmanlk / osdb-project Goto Github PK

View Code? Open in Web Editor NEW
12.0 2.0 1.0 5.53 MB

English-Sinhala, Sinhala-English Database with more than 100k definitions.

License: MIT License

JavaScript 100.00%
sinhala-dictionary sinhala-definitions english-sinhala sri-lanka english-language sinhala-language

osdb-project's Introduction

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.
  • 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.
  2. Fork this repository.
  3. Navigate to that directory using your Terminal (or CMD),
  4. Run npm install to install dependencies.
  5. After that run node build.js -f [formats] to generate databases.
  • Generated files will be placed inside the outputs directory.

Examples

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)

License

  • MIT

Contact

Download

  1. You can download this project in zip format.
  2. You can also clone the project with Git by running,
$ git clone https://github.com/ipmanlk/OSDB-Project.git

osdb-project's People

Contributors

dependabot[bot] avatar ipmanlk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.