NAME
normalizer - transform strings into a normal form
SYNOPSIS
normalizer [options]
Options:
--file file
--value value
--type business, address, city, state, zip, phone or title
--config business_stem, address_stop, etc.
--help list usage for methods and parameters
--man print man page
--version show module path and version
OPTIONS
- --value
-
The value to transform.
--value="The The" -v "The "the"
- --file
-
Text file containing one value per line.
--file=values.txt -f values.txt
- --type
-
The type of value: business, address, city, state, zip, phone or title. Defaults to business.
--type=address -t address
- --config
-
Multiple key=value pairs. Override data found in Config types by specifying your own paths:
--config business_stem=/path/to/my_stem.txt --config address_stop=/path/to/my_stop.txt -c business_stem=/path/to/my_stem.txt -c address_stop=/path/to/my_stop.txt
Overrides any values found in custom config file:
$ENV{HOME}/.normalizer.ini
See String::Normal for full list of config keys.
- --help
-
Shows synopsis and exits.
- --man
-
Prints the manual page and exits.
- --version
-
Prints the versions of the core modules used.
CONFIG
This tool will check for the presence of a config file with the location/name $ENV{HOME}/.normalizer.ini
Here you may specify the paths to your custom data files which will override data found in Config classes, one pair per line:
business_stem /path/to/my_business_stem.txt
business_stop /path/to/my_business_stop.txt
# etc.
These values will be checked first, and any --config
command line args will override them.
See String::Normal for full list of config keys.
EXAMPLES
normalizer --value="Jones's & Sons Bakeries" --type=business
# business is the default type
normalizer --value="Jones's & Sons Bakeries"
normalizer --value="123 Main Street" --type=address
ls -1 | normalizer --type=title --file=-
SEE ALSO
- String::Normal
-
The engine behind this script.
AUTHOR
Jeff Anderson, <jeffa at cpan.org>
LICENSE AND COPYRIGHT
Copyright 2024 Jeff Anderson.
This program is free software; you can redistribute it and/or modify it under the terms of the the Artistic License (2.0). You may obtain a copy of the full license at:
http://www.perlfoundation.org/artistic_license_2_0
Any use, modification, and distribution of the Standard or Modified Versions is governed by this Artistic License. By using, modifying or distributing the Package, you accept this license. Do not use, modify, or distribute the Package, if you do not accept this license.
If your Modified Version has been derived from a Modified Version made by someone other than you, you are nevertheless required to ensure that your Modified Version complies with the requirements of this license.
This license does not grant you the right to use any trademark, service mark, tradename, or logo of the Copyright Holder.
This license includes the non-exclusive, worldwide, free-of-charge patent license to make, have made, use, offer to sell, sell, import and otherwise transfer the Package with respect to any patent claims licensable by the Copyright Holder that are necessarily infringed by the Package. If you institute patent litigation (including a cross-claim or counterclaim) against any party alleging that the Package constitutes direct or contributory patent infringement, then this Artistic License to you shall terminate on the date that such litigation is filed.
Disclaimer of Warranty: THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS "AS IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY YOUR LOCAL LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR CONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.