Skip to content

Commit

Permalink
examples/improver now looks at the arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Jan 10, 2025
1 parent 39fb4d6 commit f10a464
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
1 change: 1 addition & 0 deletions MANIFEST
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ t/eol.t
t/fixme.t
t/manifest.t
t/modules-used.t
t/pod-cm.t
t/pod-coverage.t
4 changes: 2 additions & 2 deletions examples/improver
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ use Grammar::Improver;

# Initialize the Grammar::Improver module
my $improver = Grammar::Improver->new(
api_url => 'https://api.languagetool.org/v2/check',
# api_url => 'https://api.languagetool.org/v2/check',
);

# Example text
my $text = 'This are a sample text with mistake.';
my $text = join(' ', @ARGV);

# Improve grammar
my $corrected_text = $improver->improve_grammar($text);
Expand Down
1 change: 1 addition & 0 deletions lib/Grammar/Improver.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package Grammar::Improver;
use strict;
use warnings;
use Carp;
use LWP::Protocol::https;
use LWP::UserAgent;
use JSON::MaybeXS;

Expand Down
10 changes: 10 additions & 0 deletions t/pod-cm.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/perl -w

use strict;
use warnings;

use Test::DescribeMe qw(author);
use Test::Needs 'Test::Pod::Spelling::CommonMistakes';

Test::Pod::Spelling::CommonMistakes->import();
all_pod_files_ok();

0 comments on commit f10a464

Please sign in to comment.