-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use pod2markdown to create README.md
- Loading branch information
1 parent
078078d
commit d8a1dc2
Showing
8 changed files
with
152 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Revision history for Grammar-Improver - Use the LanguageTool API to rewrite text | ||
|
||
0.01 | ||
First draft |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,5 @@ Makefile.PL | |
MANIFEST This list of files | ||
README.md | ||
t/30-basics.t | ||
t/eof.t | ||
t/eol.t |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,43 @@ | ||
# Grammar-Improver | ||
Use the LanguageTool API to rewrite text | ||
# NAME | ||
|
||
Grammar::Improver - A Perl module for improving grammar using LanguageTool API. | ||
|
||
# VERSION | ||
|
||
Version 0.01 | ||
|
||
# SYNOPSIS | ||
|
||
use Grammar::Improver; | ||
|
||
my $improver = Grammar::Improver->new( | ||
api_url => 'https://api.languagetool.org/v2/check', | ||
); | ||
|
||
my $text = 'This are a sample text with mistake.'; | ||
my $corrected_text = $improver->improve_grammar($text); | ||
|
||
print "Corrected Text: $corrected_text\n"; | ||
|
||
# DESCRIPTION | ||
|
||
The `Grammar::Improver` module interfaces with the LanguageTool API to analyze and improve grammar in text input. | ||
|
||
# AUTHOR | ||
|
||
Nigel Horne <njh@bandsman.co.uk> | ||
|
||
# METHODS | ||
|
||
## new | ||
|
||
my $improver = Grammar::Improver->new(%args); | ||
|
||
Creates a new `Grammar::Improver` object. | ||
|
||
## improve\_grammar | ||
|
||
my $corrected_text = $improver->improve_grammar($text); | ||
|
||
Analyzes, improves and corrects the grammar of the input text. | ||
Returns the corrected text. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env perl | ||
|
||
use strict; | ||
use warnings; | ||
|
||
use Test::DescribeMe qw(author); | ||
use Test::Most; | ||
use Test::Needs 'Test::EOF'; | ||
|
||
Test::EOF->import(); | ||
all_perl_files_ok({ minimum_newlines => 1, maximum_newlines => 4 }); | ||
done_testing(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env perl | ||
|
||
use strict; | ||
use warnings; | ||
|
||
use Test::DescribeMe qw(author); | ||
use Test::Most; | ||
use Test::Needs 'Test::EOL'; | ||
|
||
Test::EOL->import(); | ||
all_perl_files_ok({ trailing_whitespace => 1 }); |