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

ytproofreading

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ytproofreading

A python module to use the proofreading support api of Yahoo! japan

  • 1.4
  • PyPI
  • Socket score

Maintainers
1

ytproofreading

A python module to use the proofreading support api of Yahoo! japan

Requirement

  • beautifulsoup4
  • certifi
  • chardet
  • idna
  • lxml
  • requests
  • soupsieve
  • urllib3

Installation

$ pip install ytproofreading

Usage

import ytproofreading

appid = "Client ID obtained from the Yahoo! japan Developer Network"

kousei = ytproofreading.Kousei(appid)

text = "遙か彼方に小形飛行機が見える。"

print(kousei.proofreading_support(text))
"""
[{'startpos': '0', 'length': '2', 'surface': '遙か', 'shitekiword': '●か', 'shitekiinfo': '表外漢字あり'},
{'startpos': '2', 'length': '2', 'surface': '彼方', 'shitekiword': '彼方(かなた)', 'shitekiinfo': '用字'},
{'startpos': '5', 'length': '5', 'surface': '小形飛行機', 'shitekiword': '小型飛行機', 'shitekiinfo': '誤変換'}]
"""

print(kousei.proofreading_support(text, 1))
"""
[{'startpos': '5', 'length': '5', 'surface': '小形飛行機', 'shitekiword': '小型飛行機', 'shitekiinfo': '誤変換'}]
"""

print(kousei.proofreading_support(text, 0, 1))
"""
[{'startpos': '0', 'length': '2', 'surface': '遙か', 'shitekiword': '●か', 'shitekiinfo': '表外漢字あり'},
{'startpos': '2', 'length': '2', 'surface': '彼方', 'shitekiword': '彼方(かなた)', 'shitekiinfo': '用字'}]
"""

Note

For more information about arguments and errors, please refer to the following URL.

  • arguments: https://developer.yahoo.co.jp/webapi/jlp/kousei/v1/kousei.html
  • errors: https://developer.yahoo.co.jp/appendix/errors.html

Author

License

"ytproofreading" is under MIT license.

FAQs


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