Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

yandex-predictor

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yandex-predictor

The API Client for Yandex Predictor

  • 0.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
increased by300%
Maintainers
1
Weekly downloads
 
Created
Source

Yandex Predictor

Yandex.Prediсtor is an application that prompts the most likely continuation of words or phrases typed by the user. It simplifies text entry, especially on mobile devices. In this case, the predictor takes into account possible typos. You can use it with this NPM package.

Follow this list

  • Get the API key here
  • npm i --save yandex-predictor

Here are how to use

// require the package
const YaPre = require('yandex-predictor');
// Create an instance of the class with the API key.
let ya = new YaPre('API_KEY');

getLangs

Get the list of languages

// example of using getLangs method
ya.getLangs((langsObj) => { // callback with the Object of all languages in ISO
  console.log(langsObj);
});
ParamTypeDefault
callbackfunc(obj)-

complete

Get the complete of phrase

// example of using complete method
ya.complete('Кахаю ц', (obj) => {
  console.log(obj); //
}, 'be', 10);
ParamTypeDefault
qstring-
callbackfunc(obj)-
langstring'en'
limitint5

Keywords

FAQs

Package last updated on 13 Nov 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc