{"_id":"lmtool","_rev":"4-7d4df508dc17f07ce6d9d5872cf0aff6","name":"lmtool","description":"Programatically submit files to lmtool and get the files back","dist-tags":{"latest":"2.0.3"},"versions":{"1.0.0":{"name":"lmtool","version":"1.0.0","description":"Programatically submit files to lmtool and get the files back","main":"index.js","scripts":{"test":"npm run lint && mocha","lint":"eslint .","coverage":"istanbul cover -- _mocha"},"repository":{"type":"git","url":"git+https://github.com/eiriksm/node-lmtool.git"},"keywords":["lmtool"],"author":{"name":"Eirik S. Morland","email":"eirik@morland.no"},"license":"MIT","bugs":{"url":"https://github.com/eiriksm/node-lmtool/issues"},"homepage":"https://github.com/eiriksm/node-lmtool#readme","devDependencies":{"coveralls":"^2.11.8","eslint":"^2.4.0","istanbul":"^0.4.2","mocha":"^2.4.5","proxyquire":"^1.7.4","should":"^8.2.2"},"dependencies":{"async":"^1.5.2","jsdom":"^8.1.0","request":"^2.67.0","tar":"^2.2.1"},"gitHead":"7d1b42c416b67bf2f2512e94bb8664cf8c13ec5a","_id":"lmtool@1.0.0","_shasum":"dd15c254f5956f9c01ebfbdbd5a3c85e60e8b39d","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.1","_npmUser":{"name":"eiriksm","email":"eirik@morland.no"},"maintainers":[{"name":"eiriksm","email":"eirik@morland.no"}],"dist":{"shasum":"dd15c254f5956f9c01ebfbdbd5a3c85e60e8b39d","tarball":"https://registry.npmjs.org/lmtool/-/lmtool-1.0.0.tgz","integrity":"sha512-+Ki7iwaDWGo5msahq2FugPvdZhCPQPlRcywWKK2pMz/5AdmfdR/tRGApwvpFrek5f7TxZQOGxtcSE/WxCY17MA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDA4NbZ1hRxchilA2iSuW1j3m16ts0JEB2HMwemZKOsGwIhAL9axAES/3wWQiYOnMbm+acGcLeEkz4/LBWLK519yDzw"}]},"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/lmtool-1.0.0.tgz_1458665089655_0.320192642044276"}},"2.0.3":{"name":"lmtool","version":"2.0.3","description":"Programatically submit files to lmtool and get the files back","main":"index.js","scripts":{"test":"npm run lint && mocha","lint":"eslint .","coverage":"istanbul cover -- _mocha"},"repository":{"type":"git","url":"git+https://github.com/eiriksm/node-lmtool.git"},"keywords":["lmtool"],"author":{"name":"Eirik S. Morland","email":"eirik@morland.no"},"license":"MIT","bugs":{"url":"https://github.com/eiriksm/node-lmtool/issues"},"homepage":"https://github.com/eiriksm/node-lmtool#readme","devDependencies":{"coveralls":"^2.11.8","eslint":"^2.4.0","istanbul":"^0.4.2","mocha":"^2.4.5","proxyquire":"^1.7.4","should":"^8.2.2"},"dependencies":{"async":"^1.5.2","jsdom":"^8.1.0","request":"^2.67.0","tar":"^2.2.1"},"gitHead":"bee4714ce3e95208afcf140407a2b0fe72e9d6f8","_id":"lmtool@2.0.3","_shasum":"a8044c9996558d8c3c55c1369ba85f767792b890","_from":".","_npmVersion":"3.7.3","_nodeVersion":"5.8.0","_npmUser":{"name":"eiriksm","email":"eirik@morland.no"},"dist":{"shasum":"a8044c9996558d8c3c55c1369ba85f767792b890","tarball":"https://registry.npmjs.org/lmtool/-/lmtool-2.0.3.tgz","integrity":"sha512-job3sVm4/KI9hxtf7so6OgOxWiEpaD2Ueq7lqVMApR8VO5qsJMiG69rg7qS7oCsAuUXzLn83SAweE+bmQ5Y6Dw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA2wecomswn9i5swFiTb+IBR9xHpgU8Eslpb+5KT3BEqAiEA1PfgCkpMUtollvgqaFyXtGwYcG8CeTAJw9anw/0oE9Q="}]},"maintainers":[{"name":"eiriksm","email":"eirik@morland.no"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/lmtool-2.0.3.tgz_1458813869992_0.4894891930744052"}}},"readme":"# node-lmtool\nProgramatically submit files to lmtool and get the files back\n\n[![Build Status](https://travis-ci.org/eiriksm/node-lmtool.svg?branch=master)](https://travis-ci.org/eiriksm/node-lmtool)\n[![Coverage Status](https://coveralls.io/repos/eiriksm/node-lmtool/badge.svg?branch=master)](https://coveralls.io/r/eiriksm/node-lmtool?branch=master)\n[![Code Climate](https://codeclimate.com/github/eiriksm/node-lmtool/badges/gpa.svg)](https://codeclimate.com/github/eiriksm/node-lmtool)\n[![Dependency Status](https://david-dm.org/eiriksm/node-lmtool.svg)](https://david-dm.org/eiriksm/node-lmtool)\n\n## What does it do?\n\nIt submits a corpus file for you, to the service [lmtool](http://www.speech.cs.cmu.edu/tools/lmtool-new.html). This service will give you a dictionary and vocabulary back, to be used for speech to text tools.\n\n## Installation\n\n`npm i -S lmtool`\n\n## API\n\n### lmtool(words, callback)\n\nStart a new lmtool submission with the words specified.\n\n#### Arguments\n\n- `words`. Required. An array of words to use for your corpus file.\n- `callback(err, fileName)`. Required. A callback to call with the name prefix of your dictionary and vocabulary files.\n\nAn array of words you want to use.\n\n## Example\n\n```js\nconst lmtool = require('lmtool');\n\nlmtool(['lazer', 'exterminate', 'cuddle'], (err, fileName) => {\n  // fileName will now be something like 1337, and that will represent the\n  // prefix for the extracted files you have gotten downloaded. Or, of course,\n  // if there was an error, fileName will be empty and err will contain the\n  // information about the error.\n  console.log(require('fs').readFileSync('1337.dic').toString());\n  // Will output something like:\n  // CUDDLE\tK AH D AH L\n  // EXTERMINATE\tIH K S T ER M AH N EY T\n  // LAZER\tL EY Z ER\n\n});\n```\n","maintainers":[{"name":"eiriksm","email":"eirik@morland.no"}],"time":{"modified":"2022-06-19T13:09:19.850Z","created":"2016-03-22T16:44:52.020Z","1.0.0":"2016-03-22T16:44:52.020Z","2.0.3":"2016-03-24T10:04:32.335Z"},"homepage":"https://github.com/eiriksm/node-lmtool#readme","keywords":["lmtool"],"repository":{"type":"git","url":"git+https://github.com/eiriksm/node-lmtool.git"},"author":{"name":"Eirik S. Morland","email":"eirik@morland.no"},"bugs":{"url":"https://github.com/eiriksm/node-lmtool/issues"},"license":"MIT","readmeFilename":"README.md"}