{"_id":"@botbuildercommunity/middleware-spell-check","_rev":"5-9e522092e3d2b942ef9fa7c8ae9948d4","name":"@botbuildercommunity/middleware-spell-check","dist-tags":{"latest":"1.0.1"},"versions":{"0.2.5":{"name":"@botbuildercommunity/middleware-spell-check","version":"0.2.5","description":"Bot Framework middleware component for the Cognitive Services Spell Check API","main":"index.js","typings":"index.d.ts","directories":{"lib":"lib"},"scripts":{"build":"tsc","test":"tsc && mocha","test-ci":"tsc && mocha --reporter xunit --reporter-options output=./mocha-test-results.xml --reporter-options suiteName=$npm_package_name"},"repository":{"type":"git","url":"git+https://github.com/BotBuilderCommunity/botbuilder-community-js.git"},"keywords":["chatbots","bot framework","bot builder","sentiment analysis","text analytics","cognitive services","middleware"],"contributors":[{"name":"Bot Builder Community"},{"name":"Stephan Bisser","email":"stephan@bisser.at"}],"license":"MIT","bugs":{"url":"https://github.com/BotBuilderCommunity/botbuilder-community-js/issues"},"homepage":"https://github.com/BotBuilderCommunity/botbuilder-community-js#readme","dependencies":{"azure-cognitiveservices-spellcheck":"^1.1.0","botbuilder":"^4.5.3","restify":"^8.4.0","web-request":"^1.0.7"},"devDependencies":{"mocha":"^6.2.0","rewire":"^4.0.1","typescript":"^3.5.2"},"publishConfig":{"access":"public"},"_id":"@botbuildercommunity/middleware-spell-check@0.2.5","_nodeVersion":"10.16.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-4q3Kz+DreZhbeH20I49kv6qAlNNGfxIqKirKb6cDR21axqD46wU+47Gu/7J+9knrG8cu6WscM8KTO1FOl16lfw==","shasum":"479a91b1fbf74759d8c3c575a3750da0d9b71a10","tarball":"https://registry.npmjs.org/@botbuildercommunity/middleware-spell-check/-/middleware-spell-check-0.2.5.tgz","fileCount":12,"unpackedSize":11198,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdjhM4CRA9TVsSAnZWagAA0hEP/RMXs1i0JcKQShLCP6Ov\nv2RqaOCiGbPTHtPdLcw5fktFjzxoIN6bn7zMwfYjulYrv5+vFEqwyUpa680d\nnbkj6IiILoz3+3ueJIXRNeTdqBTzAtPljTXoJ3KY9ulvALLpLJtbTy1ql95k\n/Lb3GsCmot0AbM5G7iMgvj1CfFs6xFfY+l43S09jCETdZQsL5C41telODh1U\n3cZlvR6aBtdCS0/miStQL0gVu4faciImwTjgFSUjGRI/rvnszgkRxquhQIi6\nfGDkGRBqM6FvicwMy6lYp4knQpxuFhJ9Rpv9OzeAfiBdPIQMIC1AbUVovvj9\nd7/+xe9czijGpV8bU2qe/AF46bvvU1XQfSTrwUGSygV05Z9UiXLL7rWanje7\nrIr6vykzN9ZKVdTpC8QjHtFPmpGkOBLsxPsGHq3YUNFjUhVQBHsp7PZwX0dl\ndE1qlI6nuL6zpYDHD1r7nBvp0bF7Bd/pXKaLYhFPZlbtesCZ8dzFpCtePnoE\nsbtWJkL9AX8qQLSGx1LSMxxLqHbq2cNieTa1le9Atwngx8Vrh7xfUER8i8Ty\nbZXbdC7OXiWSSF9VAZq9JeYUJK1GWRSBUbX/246t5DWfUOV+w06T97B+4XbO\nNlbi6XYx4+i8lgqaIAACSZ21jN4RmWN/hGrmGCFBlFR0mm2W+zzqGqyWgE5Q\n5Bmi\r\n=X2rs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCee8bWeEPUEVl64RARFImbRcp+AtCXbkbKgUOhRrxM3AIgbThN5tUVQXdcq7BmrtM6/604pDNDiNle4AQevMO3c10="}]},"maintainers":[{"name":"cloudguy_pro","email":"stephan@bisser.at"},{"name":"szul","email":"michael@szul.us"},{"name":"jamesemann","email":"james.mann@bcs.org"}],"_npmUser":{"name":"szul","email":"michael@szul.us"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/middleware-spell-check_0.2.5_1569592119693_0.817913775474701"},"_hasShrinkwrap":false},"1.0.0":{"name":"@botbuildercommunity/middleware-spell-check","version":"1.0.0","description":"Bot Framework middleware component for the Cognitive Services Spell Check API","main":"index.js","typings":"index.d.ts","directories":{"lib":"lib"},"scripts":{"build":"tsc","test":"tsc && mocha","test-ci":"tsc && mocha --reporter xunit --reporter-options output=./mocha-test-results.xml --reporter-options suiteName=$npm_package_name"},"repository":{"type":"git","url":"git+https://github.com/BotBuilderCommunity/botbuilder-community-js.git"},"keywords":["chatbots","bot framework","bot builder","sentiment analysis","text analytics","cognitive services","middleware"],"contributors":[{"name":"Bot Builder Community"},{"name":"Stephan Bisser","email":"stephan@bisser.at"}],"license":"MIT","bugs":{"url":"https://github.com/BotBuilderCommunity/botbuilder-community-js/issues"},"homepage":"https://github.com/BotBuilderCommunity/botbuilder-community-js#readme","dependencies":{"azure-cognitiveservices-spellcheck":"^1.1.0","botbuilder":"^4.5.3","restify":"^8.4.0","web-request":"^1.0.7"},"devDependencies":{"mocha":"^6.2.0","rewire":"^4.0.1","typescript":"^3.5.2"},"publishConfig":{"access":"public"},"_id":"@botbuildercommunity/middleware-spell-check@1.0.0","_nodeVersion":"10.16.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-X2/dfS8hc6x2vaV9s7cu48fxuk6Z7EriCWNeknp2389PInCoqqqDaV2R0rcMT2FUg9uN/avvepYOeBraMxKuxA==","shasum":"73d575b74eb938c33841b9b29b52ed4d5a3dad7e","tarball":"https://registry.npmjs.org/@botbuildercommunity/middleware-spell-check/-/middleware-spell-check-1.0.0.tgz","fileCount":12,"unpackedSize":11198,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdjhNmCRA9TVsSAnZWagAA8lcP+wey32nMmxiLpjD0L/xn\nSfLaP3t+h4xJ+tylhZx0+1/08gqH8zdp/NJPyU+/Z6pfLMlqz4WfYrk/Zrif\nnAS8IJSVMBc5+JzUSJCU+9a+9zM4JVy8E/MffhY4WVPzqR2n2HBhYgf5jE9h\n6OaYdHTjhbdH9MsGUlad+2x8Ygkm4yiDSO5rRDJFWDjNPVrv6Bnqanwa84RE\nVl8U0goaDVmzTB3DJFLONH230km5TCOz49ma2KpiCgLp0MAv8mRpbI0MqVG7\nq0QCAwtyF2qB0qPni7S3bJVTnTdS/QeLHeYQ8XuqU5T9f3eMf5xs+OfCwKpp\nfIrZxXmAKOZhenNxXXzKIQZN9lOkDJtS9hPwe864A/a3Fw5fEWhz2YHLwcpR\nU+MlWKhjpGyxu7rY0uAUqApIVjwcFEok7oaT7YyFtgEoZ7HDpZUblYSDPGdP\nlVMYuihNiMjYcBqtdd6ds1mGDzRM8JHSNOh8UjX9IZv7HOv1pkFudJYjC6o7\nkdHR6iOgucoOpPbMpLeUN/cAkbfAnnHqW58LmhtMM/33ePlyDJN7x8zwAabw\nhruk160PzZnRX1afhd7ean6H2um3/HzfbeKo5nixncgw7T+BTAVxO2mMUs4D\neEgPKdI3nx2UNOqVN2tKu8SRfrn98DdYBUy+nfBrPI5EM6/9mY+U6JsQ+lKQ\nBNOm\r\n=wUPD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDIpFAQKU32mkmZ+zAnfYVuMUToivINXkgb+ygBY9vE5AiAlyRinkQIAGQlVCZfZ2ml5kgsHE3pbBTvnjvtFFApdTA=="}]},"maintainers":[{"name":"cloudguy_pro","email":"stephan@bisser.at"},{"name":"jamesemann","email":"james.mann@bcs.org"},{"name":"szul","email":"michael@szul.us"}],"_npmUser":{"name":"szul","email":"michael@szul.us"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/middleware-spell-check_1.0.0_1569592165784_0.2894893662713467"},"_hasShrinkwrap":false},"1.0.1":{"name":"@botbuildercommunity/middleware-spell-check","version":"1.0.1","description":"Bot Framework middleware component for the Cognitive Services Spell Check API","main":"./lib/index.js","typings":"index.d.ts","directories":{"lib":"lib"},"nyc":{"extends":"@istanbuljs/nyc-config-typescript","all":true,"check-coverage":true,"lines":0,"statements":0,"functions":0,"branches":0,"exclude":["**/*.d.ts","**/*.test.js"],"reporter":["text","cobertura","html"],"report-dir":"./.nyc_output/coverage"},"scripts":{"build":"tsc","test":"tsc && nyc mocha","test-ci":"tsc && nyc mocha --reporter xunit --reporter-options output=./mocha-test-results.xml --reporter-options suiteName=$npm_package_name"},"repository":{"type":"git","url":"git+https://github.com/BotBuilderCommunity/botbuilder-community-js.git"},"keywords":["chatbots","bot framework","bot builder","sentiment analysis","text analytics","cognitive services","middleware"],"contributors":[{"name":"Bot Builder Community"},{"name":"Stephan Bisser","email":"stephan@bisser.at"}],"license":"MIT","bugs":{"url":"https://github.com/BotBuilderCommunity/botbuilder-community-js/issues"},"homepage":"https://github.com/BotBuilderCommunity/botbuilder-community-js#readme","dependencies":{"azure-cognitiveservices-spellcheck":"^1.1.0","botbuilder":"^4.8.0","restify":"^8.5.1","web-request":"^1.0.7"},"devDependencies":{"@istanbuljs/nyc-config-typescript":"^0.1.3","mocha":"^7.1.1","nyc":"^15.0.0","rewire":"^5.0.0","typescript":"^3.5.2"},"publishConfig":{"access":"public"},"gitHead":"1066f5f7752f3298e575aa495afa4592d5f54a44","_id":"@botbuildercommunity/middleware-spell-check@1.0.1","_nodeVersion":"12.14.0","_npmVersion":"lerna/3.20.2/node@v12.14.0+x64 (darwin)","dist":{"integrity":"sha512-6a7rcytFQi4HfHa8ZxRfSSyclV9OC/jADU9hCky8kcy+K7DPQcQWQC5bSeSgq2T09g6wIN8gr0Veuv7MsN9hJQ==","shasum":"4d02110cbb97ad458293ac3a9a2a7c711c472d68","tarball":"https://registry.npmjs.org/@botbuildercommunity/middleware-spell-check/-/middleware-spell-check-1.0.1.tgz","fileCount":14,"unpackedSize":12903,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJefMsPCRA9TVsSAnZWagAAulEQAKJ5FUVbPTqQyeNidRIR\nwLPZIMWUieTqHMYCFlZ/RlSCNMCQkSzHOzL08xzfmCwJ2MlHDm+84h0N/cIc\nKmvQNgH/JPD1Cq1rgIHLY74LfFmsFaOBvBtU6Pw/i8FkLRIumOhtgli87KCF\niCxScOHfk4At6zphoetOuwuOMQ+m/NPMhmrFi0cObA2R57YF/4GzHKi8r4ZQ\n4FN8TT4UlnffCNDmZnbf59xVIRqPKkJqUmlvwYddLyUe/Oik1d/53v847V03\n/5DyBxNVu5yNn6YQiuTRMqaoI5nqRLnZ1zXvk+X3LjEbaKcWvAc1atmJVbdI\nRRJX3HnF+gkWFsO7JVVQx5LVQCFonsd6iORjUNuAn2svINtnQ6BAHXgkqIbQ\nBUTUNBm9aWjgklWb4DZK+1dwgR+hfWufJmhILRhwfbYK1wl6+bSdcv2Nj24R\nIItigqnUS81pl2VLa6YDJ+G8GmRWsKJyyqk7cBnIW3AcVMM4+FY/jinuVYcc\nvg0LCb6xdcEFH0HX5f9pPo1Jz3knE+H3gxhMhg9YX0OzCy70P/Lwl6WYte9g\nHTz0sW4eWADbWEW/LkrwiWi6h2asvDRqBPrjvGlDWMalhgfMSqqwCnwmWcyv\nGBmoI3hrnWwmEwOTvDCBF0765Q2vHWthIAGFFbe5Awmz+JQ8K5mpjN8UXANw\nod6i\r\n=6fD9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCf8KGt7JG1OrhHFvHulZODZA2wL0MKgCDX/72TeIVMfQIgdjE5Jk4ffNrleH0tvBM+jQ7axdZw0vhdG/ZBiccurbw="}]},"maintainers":[{"email":"stephan@bisser.at","name":"cloudguy_pro"},{"email":"mick@imick.nl","name":"imick"},{"email":"james.mann@bcs.org","name":"jamesemann"},{"email":"michael@szul.us","name":"szul"}],"_npmUser":{"name":"imick","email":"mick@imick.nl"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/middleware-spell-check_1.0.1_1585236751187_0.18208847769098746"},"_hasShrinkwrap":false}},"time":{"created":"2019-09-27T13:48:39.606Z","0.2.5":"2019-09-27T13:48:39.828Z","modified":"2022-04-04T20:13:43.061Z","1.0.0":"2019-09-27T13:49:25.919Z","1.0.1":"2020-03-26T15:32:31.286Z"},"maintainers":[{"email":"james.mann@bcs.org","name":"jamesemann"},{"email":"stephan@bisser.at","name":"cloudguy_pro"},{"email":"mick@imick.nl","name":"imick"}],"description":"Bot Framework middleware component for the Cognitive Services Spell Check API","homepage":"https://github.com/BotBuilderCommunity/botbuilder-community-js#readme","keywords":["chatbots","bot framework","bot builder","sentiment analysis","text analytics","cognitive services","middleware"],"repository":{"type":"git","url":"git+https://github.com/BotBuilderCommunity/botbuilder-community-js.git"},"contributors":[{"name":"Bot Builder Community"},{"name":"Stephan Bisser","email":"stephan@bisser.at"}],"bugs":{"url":"https://github.com/BotBuilderCommunity/botbuilder-community-js/issues"},"license":"MIT","readme":"# Spell Check Middleware\n\nThe Spell Check Middleware offers Bot Framework middleware components for the Cognitive Services Bing Spell Check API. You will need an Azure account, as well as a Cognitive Services resource created on Azure. Take a look at the [Bing Spell Check API documentation](https://azure.microsoft.com/en-us/services/cognitive-services/spell-check/) for details.\n\n## Installing\n\n    npm install @botbuildercommunity/middleware-spell-check --save\n\n## Usage\n\nAll middleware is created and use in the same way. For example, for spell check, import the `SpellCheck` class from the package, and add it to your bot adapter:\n\n```typescript\nimport { SpellCheck } from '@botbuildercommunity/middleware-spell-check';\n\nadapter.use(new SpellCheck(YOUR_BING_SPELL_CHECK_KEY));\n```\n\nWhen used, the `turnState` on the `TurnContext` will have a property named `suggestion` which is the actual suggestion. Furthermore `turnState` will have a property `token` which is the phrase which has been classified by the service to be replaced by the suggestion. A full example can be seen in the [`sample`](../../samples/middleware-spell-check/index.js) bot test file.\n\nSupported middleware classes include:\n\n* `SpellCheck`\n\nEach class takes the one required parameter like in the example usage above.\n\nIn each case, properties are added to the `turnState` of the `TurnContext` You can retrieve them in your bot via:\n\n* `context.turnState.get(\"token\")` //This is the token which you could replace by `suggestion`\n* `context.turnState.get(\"suggestion\")` //This is the suggestion which the `token` could be replaced with\n","readmeFilename":"README.md"}