Skip to content

Commit 119116e

Browse files
committed
Add example
1 parent f13b71f commit 119116e

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

‎README.rst‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,17 @@ results from the command-line.
1414
Example usage
1515
-------------
1616

17+
From the command line::
18+
19+
$ echo 'A sentence with a error in the Hitchhiker’s Guide tot he Galaxy' \
20+
> foo.txt
21+
$ ./language-check foo.txt
22+
foo.txt:1:17: Use 'an' instead of 'a' if the following word starts with a
23+
vowel sound, e.g. 'an article', 'an hour'; suggestions: an
24+
foo.txt:1:51: Did you mean 'to the'?; suggestions: to the
25+
26+
From Python:
27+
1728
>>> import language_check
1829
>>> lang_check = language_check.LanguageTool("en-US")
1930
>>> text = "A sentence with a error in the Hitchhiker’s Guide tot he Galaxy"

0 commit comments

Comments
 (0)