Skip to content

Create YAML file of AWS term to be used with textlint library phr

License

Notifications You must be signed in to change notification settings

uchimanajet7/awr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

awr

Create YAML file of AWS term to be used with textlint library phr.

Description

Output YAML file which can be used for phr of textlint library.

It is acquiring and using AWS terminology of Japanese in the following Web page.

You can customize the expression by writing it in the setting file.

see also:

Features

  • It is made by golang so it supports multi form.
  • You can control the operation in the setting file.
    • You can customize the format of the string you want to check in phr format.

Requirement

Usage

Just run the only one command.

$ ./awr

However, setting is necessary to execute.

Setting Example

  1. In the same place as the binary file create execution settings file.

  2. Execution settings are done with config.json file.

{
	"URL": "https://docs.aws.amazon.com/ja_jp/general/latest/gr/glos-chap.html",
	"Rules": [
		{
			"Expected": "AWS マネジメントコンソール",
			"Patterns": [
				"AWS マネージメントコンソール",
				"AWS Management Console"
			]
		},
		{
			"Expected": "アマゾン ウェブ サービス",
			"Patterns": [
				"Amazon Web Services",
				"Amazon Web Service"
			]
		}
	]
}
  • About setting items
    • URL: String
      • Specify the URL for acquiring the Japanese version of AWS terminology.
    • Rules: Array
      • Specify the character string you want to customize as an array.
      • Expected: String
        • Describe the correct character string.
        • It must match exactly what is described in the AWS glossary.
      • Patterns: Array
        • Write an array of the character strings you want to match with the check.

Please edit the output aws_words.yml directly if you want to do fine editing.

Installation

If you build from source yourself.

$ go get github.com/uchimanajet7/awr
$ cd $GOPATH/src/github.com/uchimanajet7/awr
$ go build

When using only YAML file

Download aws_words.yml from the repository and specify it in the phr configuration file.

see also:

Author

uchimanajet7

Licence

MIT License

About

Create YAML file of AWS term to be used with textlint library phr

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages