1.3.1 • Published 4 years ago

@ipmanlk/subasa-api v1.3.1

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

Subasa API

Javascript API for the Subasa Sinhala spell checker

Usage

Download node from nodejs.org and install it, if you haven't already.

Then install subasa-api using npm or yarn.

npm install @ipmanlk/subasa-api --save

Example,

const { correct } = require("@ipmanlk/subasa-api");

const text = "මථකය (ස්මෘතිය) යනු ජීවියෙකු තුළ තොරතුරු ගබඩා කිරීමට සහ ඉන්පසුව එම තොරතුරු ණැවත එලි දැක්වීමට ඇති හැකියාවයි.";

correct(text).then(data => {
    console.log("corrected text: ", data.text);
    console.log("corrections: ", data.corrections);
});
1.3.1

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.0.0

4 years ago