translate-book

0.3.2 • Public • Published

Help to read English text

This will help you read books in English more easily. The algorithm parses the book, finds rare words and adds a Russian translation next to them.

Install

npm install translate-book

How to use

const bookUrl = './books/Kerroll_Alice-s-Adventures-in-Wonderland-illustrated.93955.fb2';
// Supports only fb2 books.

const params = {
    maxRate: 10
}

translateBook.translateBookFile(bookUrl, params)
    .then(path => {
        // path to translated book
    })

Available params

  • maxRate - number
  • debug - boolean
  • dist - string

Live demo: translate-book.herokuapp.com

Readme

Keywords

none

Package Sidebar

Install

npm i translate-book

Weekly Downloads

3

Version

0.3.2

License

ISC

Unpacked Size

3.91 MB

Total Files

6

Last publish

Collaborators

  • kraigo