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

wordai

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wordai

NodeJS interface for WordAI API

  • 0.1.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

WordAI

A node interface for WordAI's API.

npm npm Build Status

WordAI's API allows you to POST an article or block of text and receive back a plain text or JSON formatted WordAI translated (spun) version of your text. Powered by WordAI.com.

You will need a password hash from https://wordai.com.

Please look at their documentation to see how to use the API. The convenience functions provided by this module simply pass their options along as form data to the REST API, so the documentation is totally valid. There are some usage examples below to see how these options should be passed in.

Add to your project

$ npm install wordai --save

~ OR ~

$ yarn add wordai

Test

$ export WORDAI_EMAIL=<YOUR_WORDAI_EMAIL>
$ export WORDAI_KEY=<YOUR_WORDAI_PASSWORD_HASH>
$ yarn test

Example usage of WordAI API

The spin method support promises and node-style callbacks.

const WordAI = require('wordai');
new WordAI({
  email: process.env.WORDAI_EMAIL,
  hash: process.env.WORDAI_KEY,
  output: 'json',
  quality: 'Regular',
});

// To request some text be process by wordAI
WordAI.spin({
  text: 'Here is an example.',
// Other options here:
//   noNested: 'on',
//   sentence: 'on',
//   paragraph: 'on',
//   title: 'on',
//   returnSpin: 'true',
//   noOriginal: 'on',
//   protected: 'my,protected,words',
//   synonyms: 'word1|synonym1,word two|first synonym 2|2nd syn',
//   perfectTense: 'correct',
}).then(response => {
  console.log(response);
  /*
    {
       "uniqueness": 100,
       "text": "{Here is|Here's} {an example|a good example|an illustration}.\n",
       "status": "Success"
    }
  */
});

Keywords

FAQs

Package last updated on 14 Jun 2019

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