Skip to content
This repository has been archived by the owner on Aug 14, 2022. It is now read-only.
/ subasa-api Public archive

Javascript API for Subasa Sinhala spell checker

Notifications You must be signed in to change notification settings

ipmanlk/subasa-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Subasa logo

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);
});

About

Javascript API for Subasa Sinhala spell checker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published