autocorrect

package module
v0.0.0-...-94e00d7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2019 License: MIT Imports: 3 Imported by: 0

README

autocorrect

自动给中英文之间加入合理的空格并纠正专用名词大小写

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDict

func AddDict(dict map[string]string)

AddDict 支持自定义添加字典

func AutoCorrect

func AutoCorrect(str string) string

AutoCorrect 对常见英文单词进行大家一般写法的纠正,如 go -> Go

func AutoSpace

func AutoSpace(str string) string

AutoSpace 自动给中英文之间加上空格

func Convert

func Convert(str string) string

Convert 先执行 AutoSpace,然后执行 AutoCorrect

Types

This section is empty.

Notes

Bugs

  • 一个段落英文开头的大小写转换有问题,比如 go中文网 中的 go 不会转为 Go。

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL