Pod-Simple-Words
view release on metacpan or search on metacpan
This defines the callback when the specific input items are found.
Types:
word
Regular human language word.
stopword
Word that should not be considered misspelled. This is often for
technical jargon which is spelled correctly but not in the regular
human language dictionary.
module
CPAN Perl module. Of the form Foo::Bar. As a special case Foo::Bar's
is recognized as the possessive of the Foo::Bar module.
url_link
A regular internet URL link.
pod_link
my($podname, $section) = @$input;
A link to another POD document. Usually a module or a script. The
$podname is the name of the pod document to link to. If this is
undef, it means that the link is to a section inside the current
document. The $section is the section of the document to link to. The
$section will be undef if not linking to a specific section.
man_link
my($manname, $section) = @$input;
A link to a UNIX man page. The $manname is the name of the man page.
The $section is the section of the man page to link to, which will be
undef if not linking to a specific section.
section
A section inside of the current document which can be linked to
externally or internally. This is usually the title of a header like
=head1, =head2, etc.
error
An error that was detected during parsing. This allows the spell
checker to check the correctness of the POD at the same time if it so
chooses.
Additional arbitrary types can be added to the splitter class in
addition to these.
splitter
$parser->splitter($splitter);
The $splitter is an instance of Text::HumanComputerWords, or something
that implements a split method exactly like it does. It is used to
split text into human and computer words. The default is reasonable for
Perl.
METHODS
skip_sections
$parser->skip_sections(@sections);
Skip the given =head1 level sections. Note that words from the section
header itself will be included, but the content of the section will
not. This is useful for skipping CONTRIBUTOR or similar sections which
are usually mostly names and shouldn't be spell checked against a human
language dictionary.
SEE ALSO
Pod::Spell
and other modules do similar parsing of POD for potentially
misspelled words. At least internally. The usually explicitly exclude
comments from verbatim blocks, and often split words on the wrong
boundaries.
AUTHOR
Graham Ollis <plicease@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2021 by Graham Ollis.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
( run in 0.933 second using v1.01-cache-2.11-cpan-71847e10f99 )