Lingua-StopWords-0.12000755000765000024 014036767103 14406 5ustar00helmutstaff000000000000README100644000765000024 723214036767103 15353 0ustar00helmutstaff000000000000Lingua-StopWords-0.12NAME Lingua::StopWords - Stop words for several languages. SYNOPSIS use Lingua::StopWords qw( getStopWords ); my $stopwords = getStopWords('en'); my @words = qw( i am the walrus goo goo g'joob ); # prints "walrus goo goo g'joob" print join ' ', grep { !$stopwords->{$_} } @words; DESCRIPTION In keyword search, it is common practice to suppress a collection of "stopwords": words such as "the", "and", "maybe", etc. which exist in in a large number of documents and do not tell you anything important about any document which contains them. This module provides such "stoplists" in several languages. Supported Languages |-----------------------------------------------------------| | Language | ISO code | default encoding | also available | |-----------------------------------------------------------| | Danish | da | ISO-8859-1 | UTF-8 | | Dutch | nl | ISO-8859-1 | UTF-8 | | English | en | ISO-8859-1 | UTF-8 | | Finnish | fi | ISO-8859-1 | UTF-8 | | French | fr | ISO-8859-1 | UTF-8 | | German | de | ISO-8859-1 | UTF-8 | | Hungarian | hu | ISO-8859-2 | UTF-8 | | Indonesian | id | ISO-8859-1 | UTF-8 | | Italian | it | ISO-8859-1 | UTF-8 | | Norwegian | no | ISO-8859-1 | UTF-8 | | Portuguese | pt | ISO-8859-1 | UTF-8 | | Romanian | ro | ISO-8859-2 | UTF-8 | | Spanish | es | ISO-8859-1 | UTF-8 | | Swedish | sv | ISO-8859-1 | UTF-8 | | Russian | ru | KOI8-R | UTF-8 | |-----------------------------------------------------------| FUNCTIONS getStopWords my $stoplist = getStopWords('en'); my $utf8_stoplist = getStopWords('en', 'UTF-8'); Retrieve a stoplist in the form of a hashref where the keys are all stopwords and the values are all 1. $stoplist = { and => 1, if => 1, # ... }; getStopWords() expects 1-2 arguments. The first, which is required, is an ISO code representing a supported language. If the ISO code cannot be found, getStopWords returns undef. The second argument should be 'UTF-8' if you want the stopwords encoded in UTF-8. The UTF-8 flag will be turned on, so make sure you understand all the implications of that. INSTALLATION To install this module type the following: perl Build.PL ./Build ./Build test ./Build install SEE ALSO The stoplists supplied by this module were created as part of the Snowball project (see http://snowball.tartarus.org, Lingua::Stem::Snowball). Lingua::EN::StopWords provides a different stoplist for English. SOURCE REPOSITORY https://github.com/wollmers/Lingua-StopWords AUTHOR Maintained by Helmut Wollmersdorfer and Marvin Humphrey . Original author Fabien Potencier, . COPYRIGHT Copyright 2021 Helmut Wollmersdorfer Copyright 2004-2008 Fabien Potencier, Marvin Humphrey LICENSE This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.3 or, at your option, any later version of Perl 5 you may have available. Changes100644000765000024 222014036767103 15756 0ustar00helmutstaff000000000000Lingua-StopWords-0.12Revision history for Perl extension Lingua::StopWords 0.12 2021-04-18 10:30:55 CEST * Release 0.12 0.11 2021-04-17 21:58:55 CEST * added Romanian and Indonesian stoplists * encoding of Hungarian corrected to ISO-8859-2 0.10 2021-04-14 23:26:39 CEST * Port source to UTF-8 0.09 2008-08-22 * Update Spanish stoplist to latest Snowball version. This is a backwards-incompatible change, but the old list was broken, containing "vosostros" instead of "vosotros" and so on. * Add Hungarian. 0.08 2006-09-19 * Fix version mismatch between main module and submodules. 0.07 2006-09-19 * Fix failing test: skip instead of fail if Test::Pod::Coverage can't be found. 0.06 2006-08-18 * Add Finnish stoplist. 0.05 2006-02-19 * Fix versioning problem with submodules 0.04 2006-02-19 * Minor mods to documentation 0.03 2006-02-19 * New maintainer Marvin Humphrey * Add UTF-8 option * Add Russian 0.02 2004-04-18 * fix the test file (no need to use Data::Denter) 0.01 Sat Apr 10 19:31:27 2004 * original version; created by h2xs 1.23 with options -X Lingua::StopWords LICENSE100644000765000024 4410314036767103 15516 0ustar00helmutstaff000000000000Lingua-StopWords-0.12This software is copyright (c) 2021 by Maintained by Helmut Wollmersdorfer . This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. Terms of the Perl programming language system itself a) the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version, or b) the "Artistic License" --- The GNU General Public License, Version 1, February 1989 --- This software is Copyright (c) 2021 by Maintained by Helmut Wollmersdorfer . This is free software, licensed under: The GNU General Public License, Version 1, February 1989 GNU GENERAL PUBLIC LICENSE Version 1, February 1989 Copyright (C) 1989 Free Software Foundation, Inc. 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The license agreements of most software companies try to keep users at the mercy of those companies. By contrast, our General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. The General Public License applies to the Free Software Foundation's software and to any other program whose authors commit to using it. You can use it for your programs, too. When we speak of free software, we are referring to freedom, not price. Specifically, the General Public License is designed to make sure that you have the freedom to give away or sell copies of free software, that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of a such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must tell them their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License Agreement applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any work containing the Program or a portion of it, either verbatim or with modifications. Each licensee is addressed as "you". 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this General Public License and to the absence of any warranty; and give any other recipients of the Program a copy of this General Public License along with the Program. You may charge a fee for the physical act of transferring a copy. 2. You may modify your copy or copies of the Program or any portion of it, and copy and distribute such modifications under the terms of Paragraph 1 above, provided that you also do the following: a) cause the modified files to carry prominent notices stating that you changed the files and the date of any change; and b) cause the whole of any work that you distribute or publish, that in whole or in part contains the Program or any part thereof, either with or without modifications, to be licensed at no charge to all third parties under the terms of this General Public License (except that you may choose to grant warranty protection to some or all third parties, at your option). c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the simplest and most usual way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this General Public License. d) You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. Mere aggregation of another independent work with the Program (or its derivative) on a volume of a storage or distribution medium does not bring the other work under the scope of these terms. 3. You may copy and distribute the Program (or a portion or derivative of it, under Paragraph 2) in object code or executable form under the terms of Paragraphs 1 and 2 above provided that you also do one of the following: a) accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Paragraphs 1 and 2 above; or, b) accompany it with a written offer, valid for at least three years, to give any third party free (except for a nominal charge for the cost of distribution) a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Paragraphs 1 and 2 above; or, c) accompany it with the information you received as to where the corresponding source code may be obtained. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form alone.) Source code for a work means the preferred form of the work for making modifications to it. For an executable file, complete source code means all the source code for all modules it contains; but, as a special exception, it need not include source code for modules which are standard libraries that accompany the operating system on which the executable file runs, or for standard header files or definitions files that accompany that operating system. 4. You may not copy, modify, sublicense, distribute or transfer the Program except as expressly provided under this General Public License. Any attempt otherwise to copy, modify, sublicense, distribute or transfer the Program is void, and will automatically terminate your rights to use the Program under this License. However, parties who have received copies, or rights to use copies, from you under this General Public License will not have their licenses terminated so long as such parties remain in full compliance. 5. By copying, distributing or modifying the Program (or any work based on the Program) you indicate your acceptance of this license to do so, and all its terms and conditions. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. 7. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of the license which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the license, you may choose any version ever published by the Free Software Foundation. 8. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 9. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 10. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS Appendix: How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to humanity, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) 19yy This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) 19xx name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (a program to direct compilers to make passes at assemblers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice That's all there is to it! --- The Artistic License 1.0 --- This software is Copyright (c) 2021 by Maintained by Helmut Wollmersdorfer . This is free software, licensed under: The Artistic License 1.0 The Artistic License Preamble The intent of this document is to state the conditions under which a Package may be copied, such that the Copyright Holder maintains some semblance of artistic control over the development of the package, while giving the users of the package the right to use and distribute the Package in a more-or-less customary fashion, plus the right to make reasonable modifications. Definitions: - "Package" refers to the collection of files distributed by the Copyright Holder, and derivatives of that collection of files created through textual modification. - "Standard Version" refers to such a Package if it has not been modified, or has been modified in accordance with the wishes of the Copyright Holder. - "Copyright Holder" is whoever is named in the copyright or copyrights for the package. - "You" is you, if you're thinking about copying or distributing this Package. - "Reasonable copying fee" is whatever you can justify on the basis of media cost, duplication charges, time of people involved, and so on. (You will not be required to justify it to the Copyright Holder, but only to the computing community at large as a market that must bear the fee.) - "Freely Available" means that no fee is charged for the item itself, though there may be fees involved in handling the item. It also means that recipients of the item may redistribute it under the same conditions they received it. 1. You may make and give away verbatim copies of the source form of the Standard Version of this Package without restriction, provided that you duplicate all of the original copyright notices and associated disclaimers. 2. You may apply bug fixes, portability fixes and other modifications derived from the Public Domain or from the Copyright Holder. A Package modified in such a way shall still be considered the Standard Version. 3. You may otherwise modify your copy of this Package in any way, provided that you insert a prominent notice in each changed file stating how and when you changed that file, and provided that you do at least ONE of the following: a) place your modifications in the Public Domain or otherwise make them Freely Available, such as by posting said modifications to Usenet or an equivalent medium, or placing the modifications on a major archive site such as ftp.uu.net, or by allowing the Copyright Holder to include your modifications in the Standard Version of the Package. b) use the modified Package only within your corporation or organization. c) rename any non-standard executables so the names do not conflict with standard executables, which must also be provided, and provide a separate manual page for each non-standard executable that clearly documents how it differs from the Standard Version. d) make other distribution arrangements with the Copyright Holder. 4. You may distribute the programs of this Package in object code or executable form, provided that you do at least ONE of the following: a) distribute a Standard Version of the executables and library files, together with instructions (in the manual page or equivalent) on where to get the Standard Version. b) accompany the distribution with the machine-readable source of the Package with your modifications. c) accompany any non-standard executables with their corresponding Standard Version executables, giving the non-standard executables non-standard names, and clearly documenting the differences in manual pages (or equivalent), together with instructions on where to get the Standard Version. d) make other distribution arrangements with the Copyright Holder. 5. You may charge a reasonable copying fee for any distribution of this Package. You may charge any fee you choose for support of this Package. You may not charge a fee for this Package itself. However, you may distribute this Package in aggregate with other (possibly commercial) programs as part of a larger (possibly commercial) software distribution provided that you do not advertise this Package as a product of your own. 6. The scripts and library files supplied as input to or produced as output from the programs of this Package do not automatically fall under the copyright of this Package, but belong to whomever generated them, and may be sold commercially, and may be aggregated with this Package. 7. C or perl subroutines supplied by you and linked into this Package shall not be considered part of this Package. 8. The name of the Copyright Holder may not be used to endorse or promote products derived from this software without specific prior written permission. 9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. The End cpanfile100644000765000024 46714036767103 16162 0ustar00helmutstaff000000000000Lingua-StopWords-0.12requires 'perl', '5.00600'; requires 'Exporter', '0.00'; requires 'Encode', '0.00'; on test => sub { requires 'Test::More', '0.88'; requires 'Test::More::UTF8', '0.00'; }; on 'develop' => sub { requires 'Test::Pod::Coverage'; requires 'Test::Pod', '1.00'; requires 'Encode', '0.00'; };dist.ini100644000765000024 4114036767103 16066 0ustar00helmutstaff000000000000Lingua-StopWords-0.12[@Milla] [MetaProvides::Package] Build.PL100644000765000024 26514036767103 15746 0ustar00helmutstaff000000000000Lingua-StopWords-0.12# This Build.PL for Lingua-StopWords was generated by Dist::Zilla::Plugin::ModuleBuildTiny 0.009. use strict; use warnings; use 5.00600; use Module::Build::Tiny 0.039; Build_PL(); META.yml100644000765000024 431014036767103 15736 0ustar00helmutstaff000000000000Lingua-StopWords-0.12--- abstract: 'Stop words for several languages.' author: - 'Maintained by Helmut Wollmersdorfer ' build_requires: Test::More: '0.88' Test::More::UTF8: '0.00' configure_requires: Module::Build::Tiny: '0.039' dynamic_config: 0 generated_by: 'Dist::Milla version v1.0.20, Dist::Zilla version 6.008, CPAN::Meta::Converter version 2.150005' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html version: '1.4' name: Lingua-StopWords no_index: directory: - eg - examples - inc - share - t - xt provides: Lingua::StopWords: file: lib/Lingua/StopWords.pm version: '0.12' Lingua::StopWords::DA: file: lib/Lingua/StopWords/DA.pm version: '0.12' Lingua::StopWords::DE: file: lib/Lingua/StopWords/DE.pm version: '0.12' Lingua::StopWords::EN: file: lib/Lingua/StopWords/EN.pm version: '0.12' Lingua::StopWords::ES: file: lib/Lingua/StopWords/ES.pm version: '0.12' Lingua::StopWords::FI: file: lib/Lingua/StopWords/FI.pm version: '0.12' Lingua::StopWords::FR: file: lib/Lingua/StopWords/FR.pm version: '0.12' Lingua::StopWords::HU: file: lib/Lingua/StopWords/HU.pm version: '0.12' Lingua::StopWords::ID: file: lib/Lingua/StopWords/ID.pm version: '0.12' Lingua::StopWords::IT: file: lib/Lingua/StopWords/IT.pm version: '0.12' Lingua::StopWords::NL: file: lib/Lingua/StopWords/NL.pm version: '0.12' Lingua::StopWords::NO: file: lib/Lingua/StopWords/NO.pm version: '0.12' Lingua::StopWords::PT: file: lib/Lingua/StopWords/PT.pm version: '0.12' Lingua::StopWords::RO: file: lib/Lingua/StopWords/RO.pm version: '0.12' Lingua::StopWords::RU: file: lib/Lingua/StopWords/RU.pm version: '0.12' Lingua::StopWords::SV: file: lib/Lingua/StopWords/SV.pm version: '0.12' requires: Encode: '0.00' Exporter: '0.00' perl: '5.00600' resources: bugtracker: https://github.com/wollmers/Lingua-StopWords/issues homepage: https://github.com/wollmers/Lingua-StopWords repository: https://github.com/wollmers/Lingua-StopWords.git version: '0.12' x_serialization_backend: 'YAML::Tiny version 1.66' x_static_install: 1 MANIFEST100644000765000024 131514036767103 15620 0ustar00helmutstaff000000000000Lingua-StopWords-0.12# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.008. Build.PL Changes LICENSE MANIFEST META.json META.yml README cpanfile devel/gen_modules.plx devel/koi8-r-to-utf8.pl dist.ini lib/Lingua/StopWords.pm lib/Lingua/StopWords/DA.pm lib/Lingua/StopWords/DE.pm lib/Lingua/StopWords/EN.pm lib/Lingua/StopWords/ES.pm lib/Lingua/StopWords/FI.pm lib/Lingua/StopWords/FR.pm lib/Lingua/StopWords/HU.pm lib/Lingua/StopWords/ID.pm lib/Lingua/StopWords/IT.pm lib/Lingua/StopWords/NL.pm lib/Lingua/StopWords/NO.pm lib/Lingua/StopWords/PT.pm lib/Lingua/StopWords/RO.pm lib/Lingua/StopWords/RU.pm lib/Lingua/StopWords/SV.pm t/1-basic.t t/2-utf8.t t/98-TestPod.t t/99-TestPodCoverage.t t/author-pod-syntax.t META.json100644000765000024 717614036767103 16123 0ustar00helmutstaff000000000000Lingua-StopWords-0.12{ "abstract" : "Stop words for several languages.", "author" : [ "Maintained by Helmut Wollmersdorfer " ], "dynamic_config" : 0, "generated_by" : "Dist::Milla version v1.0.20, Dist::Zilla version 6.008, CPAN::Meta::Converter version 2.150005", "license" : [ "perl_5" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", "version" : 2 }, "name" : "Lingua-StopWords", "no_index" : { "directory" : [ "eg", "examples", "inc", "share", "t", "xt" ] }, "prereqs" : { "configure" : { "requires" : { "Module::Build::Tiny" : "0.039" } }, "develop" : { "requires" : { "Dist::Milla" : "v1.0.20", "Encode" : "0.00", "Test::Pod" : "1.41", "Test::Pod::Coverage" : "0" } }, "runtime" : { "requires" : { "Encode" : "0.00", "Exporter" : "0.00", "perl" : "5.00600" } }, "test" : { "requires" : { "Test::More" : "0.88", "Test::More::UTF8" : "0.00" } } }, "provides" : { "Lingua::StopWords" : { "file" : "lib/Lingua/StopWords.pm", "version" : "0.12" }, "Lingua::StopWords::DA" : { "file" : "lib/Lingua/StopWords/DA.pm", "version" : "0.12" }, "Lingua::StopWords::DE" : { "file" : "lib/Lingua/StopWords/DE.pm", "version" : "0.12" }, "Lingua::StopWords::EN" : { "file" : "lib/Lingua/StopWords/EN.pm", "version" : "0.12" }, "Lingua::StopWords::ES" : { "file" : "lib/Lingua/StopWords/ES.pm", "version" : "0.12" }, "Lingua::StopWords::FI" : { "file" : "lib/Lingua/StopWords/FI.pm", "version" : "0.12" }, "Lingua::StopWords::FR" : { "file" : "lib/Lingua/StopWords/FR.pm", "version" : "0.12" }, "Lingua::StopWords::HU" : { "file" : "lib/Lingua/StopWords/HU.pm", "version" : "0.12" }, "Lingua::StopWords::ID" : { "file" : "lib/Lingua/StopWords/ID.pm", "version" : "0.12" }, "Lingua::StopWords::IT" : { "file" : "lib/Lingua/StopWords/IT.pm", "version" : "0.12" }, "Lingua::StopWords::NL" : { "file" : "lib/Lingua/StopWords/NL.pm", "version" : "0.12" }, "Lingua::StopWords::NO" : { "file" : "lib/Lingua/StopWords/NO.pm", "version" : "0.12" }, "Lingua::StopWords::PT" : { "file" : "lib/Lingua/StopWords/PT.pm", "version" : "0.12" }, "Lingua::StopWords::RO" : { "file" : "lib/Lingua/StopWords/RO.pm", "version" : "0.12" }, "Lingua::StopWords::RU" : { "file" : "lib/Lingua/StopWords/RU.pm", "version" : "0.12" }, "Lingua::StopWords::SV" : { "file" : "lib/Lingua/StopWords/SV.pm", "version" : "0.12" } }, "release_status" : "stable", "resources" : { "bugtracker" : { "web" : "https://github.com/wollmers/Lingua-StopWords/issues" }, "homepage" : "https://github.com/wollmers/Lingua-StopWords", "repository" : { "type" : "git", "url" : "https://github.com/wollmers/Lingua-StopWords.git", "web" : "https://github.com/wollmers/Lingua-StopWords" } }, "version" : "0.12", "x_serialization_backend" : "Cpanel::JSON::XS version 4.15", "x_static_install" : 1 } t000755000765000024 014036767103 14572 5ustar00helmutstaff000000000000Lingua-StopWords-0.122-utf8.t100644000765000024 301314036767103 16141 0ustar00helmutstaff000000000000Lingua-StopWords-0.12/tuse strict; use Test::More; use utf8; use lib qw(../lib/); use Test::More; use Test::More::UTF8; BEGIN { eval "use Encode qw( is_utf8 encode);"; if ($@) { plan skip_all => "Encode module not available"; } use_ok('Lingua::StopWords'); } my $tests = [ [qw(da når iso-8859-1)], [qw(de für iso-8859-1)], [qw(en our iso-8859-1)], [qw(es qué iso-8859-1)], [qw(fi minä iso-8859-1)], [qw(fr été iso-8859-1)], [qw(hu elő iso-8859-2)], [qw(it più iso-8859-1)], [qw(id dia iso-8859-1)], [qw(nl hij iso-8859-1)], [qw(no på iso-8859-1)], [qw(ro ăla iso-8859-2)], [qw(pt não iso-8859-1)], [qw(ru все KOI8-R)], [qw(sv för iso-8859-1)], ]; for my $test ( @{$tests} ) { my ($language, $word, $encoding) = @$test; my $stoplist = Lingua::StopWords::getStopWords( $language, 'UTF-8' ); ok( $stoplist->{$word}, "UTF-8 encoded version present in stoplist [$language]" ); for my $key ( keys %$stoplist ) { $key .= 'å'; # upgrades pure ASCII to UTF-8 $key =~ s/å$//; ok( is_utf8($key), "the stoplist keys of [$language] are flagged as UTF-8" ); last; } $stoplist = Lingua::StopWords::getStopWords($language); my $octet = encode($encoding, $word); ok( $stoplist->{$octet}, "Non-utf8-flagged version of [$language] present" ); for ( keys %$stoplist ) { ok( !is_utf8($_), "the stoplist keys of [$language] are not flagged as UTF-8" ); last; } } done_testing; 1-basic.t100644000765000024 121214036767103 16332 0ustar00helmutstaff000000000000Lingua-StopWords-0.12/tuse strict; use Test::More tests => 8; BEGIN { use_ok('Lingua::StopWords'); use_ok('Lingua::StopWords::EN'); use_ok('Lingua::StopWords::FR'); }; my $wordlist = Lingua::StopWords::getStopWords('en'); ok($wordlist->{me}); ok(!$wordlist->{moi}); my $wordlist3 = Lingua::StopWords::getStopWords('xx'); is($wordlist3, undef); my $wordlist1 = Lingua::StopWords::getStopWords('fr'); my $wordlist2 = Lingua::StopWords::FR::getStopWords(); is_deeply($wordlist1, $wordlist2); my $text = 'ceci est un texte avec des mots au hasard'; my @words = split / /, $text; my $t = join ' ', grep { !$wordlist1->{$_} } @words; is ($t, 'ceci texte mots hasard'); 98-TestPod.t100644000765000024 23214036767103 16714 0ustar00helmutstaff000000000000Lingua-StopWords-0.12/t#!/usr/bin/perl use Test::More; plan skip_all => "Test::Pod 1.00 required for testing POD" unless eval "use Test::Pod 1.00; 1"; all_pod_files_ok(); devel000755000765000024 014036767103 15426 5ustar00helmutstaff000000000000Lingua-StopWords-0.12gen_modules.plx100755000765000024 501214036767103 20615 0ustar00helmutstaff000000000000Lingua-StopWords-0.12/devel#!/usr/bin/perl # use to automatically generate the Lingua::StopWords::XX modules. use lib qw( lib ); use strict; use Lingua::StopWords; use Lingua::Stem::Snowball qw( stemmers ); use Encode qw( from_to ); use Text::Wrap qw( wrap ); use Getopt::Long; # tabs are evil $Text::Wrap::unexpand = 0; # snowdir should be the snowball_all directory my $snowdir; GetOptions( 'snowdir=s' => \$snowdir ); die "Usage ./bin/gen_modules.plx --snowdir=SNOWDIR" unless -d $snowdir; die "Usage of this script is DEPRECATED." my $template = <<'END_MODULE'; package Lingua::StopWords::#ISO#; use strict; use warnings; use Exporter; our @ISA = qw(Exporter); our %EXPORT_TAGS = ( 'all' => [ qw( getStopWords ) ] ); our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } ); our $VERSION = #VERSION#; sub getStopWords { if ( @_ and $_[0] eq 'UTF-8' ) { # adding U0 causes the result to be flagged as UTF-8 my %stoplist = map { ( pack("U0a*", $_), 1 ) } qw( #UTF8# ); return \%stoplist; } else { my %stoplist = map { ( $_, 1 ) } qw( #PLAIN# ); return \%stoplist; } } 1; END_MODULE my %languages = ( DA => "danish", NL => "dutch", EN => "english", FI => "finnish", FR => "french", DE => "german", HU => "hungarian", IT => "italian", NO => "norwegian", PT => "portuguese", RU => "russian", ES => "spanish", SV => "swedish", ); while ( my ( $iso, $lang ) = each %languages ) { my $file = "$snowdir/algorithms/$lang/stop.txt"; print STDERR "Generating '$lang' stopword list module\n"; # extract stoplists from snowball source files; parse my @words; open( SNOWBALL_STOPFILE, "<", $file ) or die "Couldn't open file '$file': $!"; while () { s/\|.*//g; next unless length; my @these_words = split; s/\s*// for @these_words; push @words, @these_words; } # translate to UTF-8 my $plain = join(' ', @words); $plain = wrap(' ', ' ', @words); my $source_enc = $lang eq 'ru' ? 'koi8-r' : 'iso-8859-1'; from_to($_, $source_enc, 'UTF-8') for @words; my $utf8 = join(' ', @words); $utf8 = wrap(' ', ' ', @words); # sub in the lists my $mod = $template; $mod =~ s/#VERSION#/$Lingua::StopWords::VERSION/g; $mod =~ s/#ISO#/$iso/g; $mod =~ s/#PLAIN#/$plain/g; $mod =~ s/#UTF8#/$utf8/g; # blast it out open(F, ">lib/Lingua/StopWords/$iso.pm"); print F $mod; close(F); } author-pod-syntax.t100644000765000024 45414036767103 20510 0ustar00helmutstaff000000000000Lingua-StopWords-0.12/t#!perl BEGIN { unless ($ENV{AUTHOR_TESTING}) { print qq{1..0 # SKIP these tests are for testing by the author\n}; exit } } # This file was automatically generated by Dist::Zilla::Plugin::PodSyntaxTests. use strict; use warnings; use Test::More; use Test::Pod 1.41; all_pod_files_ok(); 99-TestPodCoverage.t100644000765000024 43014036767103 20371 0ustar00helmutstaff000000000000Lingua-StopWords-0.12/t#!/usr/bin/perl use Test::More; if ( eval "use Test::Pod::Coverage; 1" ) { plan( tests => 1 ); pod_coverage_ok( "Lingua::StopWords", "Pod coverage is OK for Lingua::StopWords" ); } else { plan( skip_all => "Test::Pod::Coverage required for testing POD" ); } koi8-r-to-utf8.pl100755000765000024 131014036767103 20536 0ustar00helmutstaff000000000000Lingua-StopWords-0.12/devel#!/usr/bin/perl use lib qw( lib ); use strict; use Encode qw( from_to ); use Getopt::Long; my $VERBOSE = 1; my $infile; GetOptions( 'infile|i=s' => \$infile, 'verbose|v=s' => \$VERBOSE, ); die "Usage ./koi8-rto-utf8.pl --infile=path" unless ($infile && -f $infile); my $outfile = $infile . '.utf8'; print "convert $infile to $outfile \n" if $VERBOSE; open( my $in_fh, "<", $infile) or die "Couldn't open infile '$infile': $!"; open(my $out_fh, ">", $outfile) or die "Couldn't open outfile '$outfile': $!"; my $source_enc = 'koi8-r'; while (my $line = <$in_fh>) { from_to($line, $source_enc, 'UTF-8'); print $out_fh $line unless $VERBOSE; } close($in_fh); close($out_fh); Lingua000755000765000024 014036767103 16314 5ustar00helmutstaff000000000000Lingua-StopWords-0.12/libStopWords.pm100644000765000024 1020714036767103 20776 0ustar00helmutstaff000000000000Lingua-StopWords-0.12/lib/Linguapackage Lingua::StopWords; use strict; use warnings; require Exporter; our @ISA = qw(Exporter); our %EXPORT_TAGS = ( 'all' => [ qw( getStopWords ) ] ); our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } ); our $VERSION = 0.12; sub getStopWords { my ( $language, $encoding ) = @_; return undef unless $language; $language = uc($language); eval { require "Lingua/StopWords/$language.pm"; }; return undef if $@; my @args = $encoding ? ($encoding) : (); no strict 'refs'; return &{ "Lingua::StopWords::$language\::getStopWords" }(@args); } 1; __END__ =head1 NAME Lingua::StopWords - Stop words for several languages. =head1 SYNOPSIS use Lingua::StopWords qw( getStopWords ); my $stopwords = getStopWords('en'); my @words = qw( i am the walrus goo goo g'joob ); # prints "walrus goo goo g'joob" print join ' ', grep { !$stopwords->{$_} } @words; =head1 DESCRIPTION In keyword search, it is common practice to suppress a collection of "stopwords": words such as "the", "and", "maybe", etc. which exist in in a large number of documents and do not tell you anything important about any document which contains them. This module provides such "stoplists" in several languages. =head2 Supported Languages |-----------------------------------------------------------| | Language | ISO code | default encoding | also available | |-----------------------------------------------------------| | Danish | da | ISO-8859-1 | UTF-8 | | Dutch | nl | ISO-8859-1 | UTF-8 | | English | en | ISO-8859-1 | UTF-8 | | Finnish | fi | ISO-8859-1 | UTF-8 | | French | fr | ISO-8859-1 | UTF-8 | | German | de | ISO-8859-1 | UTF-8 | | Hungarian | hu | ISO-8859-2 | UTF-8 | | Indonesian | id | ISO-8859-1 | UTF-8 | | Italian | it | ISO-8859-1 | UTF-8 | | Norwegian | no | ISO-8859-1 | UTF-8 | | Portuguese | pt | ISO-8859-1 | UTF-8 | | Romanian | ro | ISO-8859-2 | UTF-8 | | Spanish | es | ISO-8859-1 | UTF-8 | | Swedish | sv | ISO-8859-1 | UTF-8 | | Russian | ru | KOI8-R | UTF-8 | |-----------------------------------------------------------| =head1 FUNCTIONS =head2 getStopWords my $stoplist = getStopWords('en'); my $utf8_stoplist = getStopWords('en', 'UTF-8'); Retrieve a stoplist in the form of a hashref where the keys are all stopwords and the values are all 1. $stoplist = { and => 1, if => 1, # ... }; getStopWords() expects 1-2 arguments. The first, which is required, is an ISO code representing a supported language. If the ISO code cannot be found, getStopWords returns undef. The second argument should be 'UTF-8' if you want the stopwords encoded in UTF-8. The UTF-8 flag will be turned on, so make sure you understand all the implications of that. =head1 INSTALLATION To install this module type the following: perl Build.PL ./Build ./Build test ./Build install =head1 SEE ALSO The stoplists supplied by this module were created as part of the Snowball project (see L, L). L provides a different stoplist for English. =head1 SOURCE REPOSITORY L =head1 AUTHOR Maintained by Helmut Wollmersdorfer Ehelmut@wollmersdorfer.atE and Marvin Humphrey Emarvin at rectangular dot comE. Original author Fabien Potencier, Efabpot at cpan dot orgE. =head1 COPYRIGHT Copyright 2021 Helmut Wollmersdorfer Copyright 2004-2008 Fabien Potencier, Marvin Humphrey =head1 LICENSE This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.3 or, at your option, any later version of Perl 5 you may have available. =cut StopWords000755000765000024 014036767103 20260 5ustar00helmutstaff000000000000Lingua-StopWords-0.12/lib/LinguaDA.pm100644000765000024 210714036767103 21242 0ustar00helmutstaff000000000000Lingua-StopWords-0.12/lib/Lingua/StopWordspackage Lingua::StopWords::DA; use strict; use warnings; use utf8; use Encode qw(encode _utf8_on); use Exporter; our @ISA = qw(Exporter); our %EXPORT_TAGS = ( 'all' => [ qw( getStopWords ) ] ); our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } ); our $VERSION = 0.12; sub getStopWords { if ( @_ and $_[0] eq 'UTF-8' ) { my %stoplist = map { ( $_, 1 ) } _stopwords(); return \%stoplist; } else { my %stoplist = map { ( encode("iso-8859-1", $_), 1 ) } _stopwords(); return \%stoplist; } } sub _stopwords { return qw( og i jeg det at en den til er som på de med han af for ikke der var mig sig men et har om vi min havde ham hun nu over da fra du ud sin dem os op man hans hvor eller hvad skal selv her alle vil blev kunne ind når være dog noget ville jo deres efter ned skulle denne end dette mit også under have dig anden hende mine alt meget sit sine vor mod disse hvis din nogle hos blive mange ad bliver hendes været thi jer sådan ); } 1; DE.pm100644000765000024 421714036767103 21252 0ustar00helmutstaff000000000000Lingua-StopWords-0.12/lib/Lingua/StopWordspackage Lingua::StopWords::DE; use strict; use warnings; use utf8; use Encode qw(encode); use Exporter; our @ISA = qw(Exporter); our %EXPORT_TAGS = ( 'all' => [ qw( getStopWords ) ] ); our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } ); our $VERSION = 0.12; sub getStopWords { if ( @_ and $_[0] eq 'UTF-8' ) { my %stoplist = map { ( $_, 1 ) } _stopwords(); return \%stoplist; } else { my %stoplist = map { ( encode("iso-8859-1", $_), 1 ) } _stopwords(); return \%stoplist; } } sub _stopwords { return qw( aber alle allem allen aller alles als also am an ander andere anderem anderen anderer anderes anderm andern anderr anders auch auf aus bei bin bis bist da damit dann der den des dem die das daß derselbe derselben denselben desselben demselben dieselbe dieselben dasselbe dazu dein deine deinem deinen deiner deines denn derer dessen dich dir du dies diese diesem diesen dieser dieses doch dort durch ein eine einem einen einer eines einig einige einigem einigen einiger einiges einmal er ihn ihm es etwas euer eure eurem euren eurer eures für gegen gewesen hab habe haben hat hatte hatten hier hin hinter ich mich mir ihr ihre ihrem ihren ihrer ihres euch im in indem ins ist jede jedem jeden jeder jedes jene jenem jenen jener jenes jetzt kann kein keine keinem keinen keiner keines können könnte machen man manche manchem manchen mancher manches mein meine meinem meinen meiner meines mit muss musste nach nicht nichts noch nun nur ob oder ohne sehr sein seine seinem seinen seiner seines selbst sich sie ihnen sind so solche solchem solchen solcher solches soll sollte sondern sonst über um und uns unse unsem unsen unser unses unter viel vom von vor während war waren warst was weg weil weiter welche welchem welchen welcher welches wenn werde werden wie wieder will wir wird wirst wo wollen wollte würde würden zu zum zur zwar zwischen ); } 1; EN.pm100644000765000024 327414036767103 21266 0ustar00helmutstaff000000000000Lingua-StopWords-0.12/lib/Lingua/StopWordspackage Lingua::StopWords::EN; use strict; use warnings; use utf8; use Encode qw(encode); use Exporter; our @ISA = qw(Exporter); our %EXPORT_TAGS = ( 'all' => [ qw( getStopWords ) ] ); our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } ); our $VERSION = 0.12; sub getStopWords { if ( @_ and $_[0] eq 'UTF-8' ) { my %stoplist = map { ( $_, 1 ) } _stopwords(); return \%stoplist; } else { my %stoplist = map { ( encode("iso-8859-1", $_), 1 ) } _stopwords(); return \%stoplist; } } sub _stopwords { return qw( i me my myself we our ours ourselves you your yours yourself yourselves he him his himself she her hers herself it its itself they them their theirs themselves what which who whom this that these those am is are was were be been being have has had having do does did doing would should could ought i'm you're he's she's it's we're they're i've you've we've they've i'd you'd he'd she'd we'd they'd i'll you'll he'll she'll we'll they'll isn't aren't wasn't weren't hasn't haven't hadn't doesn't don't didn't won't wouldn't shan't shouldn't can't cannot couldn't mustn't let's that's who's what's here's there's when's where's why's how's a an the and but if or because as until while of at by for with about against between into through during before after above below to from up down in out on off over under again further then once here there when where why how all any both each few more most other some such no nor not only own same so than too very ); } 1; ES.pm100644000765000024 605414036767103 21272 0ustar00helmutstaff000000000000Lingua-StopWords-0.12/lib/Lingua/StopWordspackage Lingua::StopWords::ES; use strict; use warnings; use utf8; use Encode qw(encode); use Exporter; our @ISA = qw(Exporter); our %EXPORT_TAGS = ( 'all' => [ qw( getStopWords ) ] ); our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } ); our $VERSION = 0.12; sub getStopWords { if ( @_ and $_[0] eq 'UTF-8' ) { my %stoplist = map { ( $_, 1 ) } _stopwords(); return \%stoplist; } else { my %stoplist = map { ( encode("iso-8859-1", $_), 1 ) } _stopwords(); return \%stoplist; } } sub _stopwords { return qw( de la que el en y a los del se las por un para con no una su al lo como más pero sus le ya o este sí porque esta entre cuando muy sin sobre también me hasta hay donde quien desde todo nos durante todos uno les ni contra otros ese eso ante ellos e esto mí antes algunos qué unos yo otro otras otra él tanto esa estos mucho quienes nada muchos cual poco ella estar estas algunas algo nosotros mi mis tú te ti tu tus ellas nosotras vosotros vosotras os mío mía míos mías tuyo tuya tuyos tuyas suyo suya suyos suyas nuestro nuestra nuestros nuestras vuestro vuestra vuestros vuestras esos esas estoy estás está estamos estáis están esté estés estemos estéis estén estaré estarás estará estaremos estaréis estarán estaría estarías estaríamos estaríais estarían estaba estabas estábamos estabais estaban estuve estuviste estuvo estuvimos estuvisteis estuvieron estuviera estuvieras estuviéramos estuvierais estuvieran estuviese estuvieses estuviésemos estuvieseis estuviesen estando estado estada estados estadas estad he has ha hemos habéis han haya hayas hayamos hayáis hayan habré habrás habrá habremos habréis habrán habría habrías habríamos habríais habrían había habías habíamos habíais habían hube hubiste hubo hubimos hubisteis hubieron hubiera hubieras hubiéramos hubierais hubieran hubiese hubieses hubiésemos hubieseis hubiesen habiendo habido habida habidos habidas soy eres es somos sois son sea seas seamos seáis sean seré serás será seremos seréis serán sería serías seríamos seríais serían era eras éramos erais eran fui fuiste fue fuimos fuisteis fueron fuera fueras fuéramos fuerais fueran fuese fueses fuésemos fueseis fuesen siendo sido tengo tienes tiene tenemos tenéis tienen tenga tengas tengamos tengáis tengan tendré tendrás tendrá tendremos tendréis tendrán tendría tendrías tendríamos tendríais tendrían tenía tenías teníamos teníais tenían tuve tuviste tuvo tuvimos tuvisteis tuvieron tuviera tuvieras tuviéramos tuvierais tuvieran tuviese tuvieses tuviésemos tuvieseis tuviesen teniendo tenido tenida tenidos tenidas tened ); } 1; FI.pm100644000765000024 463114036767103 21260 0ustar00helmutstaff000000000000Lingua-StopWords-0.12/lib/Lingua/StopWordspackage Lingua::StopWords::FI; use strict; use warnings; use utf8; use Encode qw(encode); use Exporter; our @ISA = qw(Exporter); our %EXPORT_TAGS = ( 'all' => [ qw( getStopWords ) ] ); our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } ); our $VERSION = 0.12; sub getStopWords { if ( @_ and $_[0] eq 'UTF-8' ) { my %stoplist = map { ( $_, 1 ) } _stopwords(); return \%stoplist; } else { my %stoplist = map { ( encode("iso-8859-1", $_), 1 ) } _stopwords(); return \%stoplist; } } sub _stopwords { return qw( olla olen olet on olemme olette ovat ole oli olisi olisit olisin olisimme olisitte olisivat olit olin olimme olitte olivat ollut olleet en et ei emme ette eivät minä minun minut minua minussa minusta minuun minulla minulta minulle sinä sinun sinut sinua sinussa sinusta sinuun sinulla sinulta sinulle hän hänen hänet häntä hänessä hänestä häneen hänellä häneltä hänelle me meidän meidät meitä meissä meistä meihin meillä meiltä meille te teidän teidät teitä teissä teistä teihin teillä teiltä teille he heidän heidät heitä heissä heistä heihin heillä heiltä heille tämä tämän tätä tässä tästä tähän tallä tältä tälle tänä täksi tuo tuon tuotä tuossa tuosta tuohon tuolla tuolta tuolle tuona tuoksi se sen sitä siinä siitä siihen sillä siltä sille sinä siksi nämä näiden näitä näissä näistä näihin näillä näiltä näille näinä näiksi nuo noiden noita noissa noista noihin noilla noilta noille noina noiksi ne niiden niitä niissä niistä niihin niillä niiltä niille niinä niiksi kuka kenen kenet ketä kenessä kenestä keneen kenellä keneltä kenelle kenenä keneksi ketkä keiden ketkä keitä keissä keistä keihin keillä keiltä keille keinä keiksi mikä minkä minkä mitä missä mistä mihin millä miltä mille minä miksi mitkä joka jonka jota jossa josta johon jolla jolta jolle jona joksi jotka joiden joita joissa joista joihin joilla joilta joille joina joiksi että ja jos koska kuin mutta niin sekä sillä tai vaan vai vaikka kanssa mukaan noin poikki yli kun niin nyt itse ); } 1; FR.pm100644000765000024 300314036767103 21261 0ustar00helmutstaff000000000000Lingua-StopWords-0.12/lib/Lingua/StopWordspackage Lingua::StopWords::FR; use strict; use warnings; use utf8; use Encode qw(encode); use Exporter; our @ISA = qw(Exporter); our %EXPORT_TAGS = ( 'all' => [ qw( getStopWords ) ] ); our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } ); our $VERSION = 0.12; sub getStopWords { if ( @_ and $_[0] eq 'UTF-8' ) { my %stoplist = map { ( $_, 1 ) } _stopwords(); return \%stoplist; } else { my %stoplist = map { ( encode("iso-8859-1", $_), 1 ) } _stopwords(); return \%stoplist; } } sub _stopwords { return qw( au aux avec ce ces dans de des du elle en et eux il je la le leur lui ma mais me même mes moi mon ne nos notre nous on ou par pas pour qu que qui sa se ses son sur ta te tes toi ton tu un une vos votre vous c d j l à m n s t y été étée étées étés étant étante étants étantes suis es est sommes êtes sont serai seras sera serons serez seront serais serait serions seriez seraient étais était étions étiez étaient fus fut fûmes fûtes furent sois soit soyons soyez soient fusse fusses fût fussions fussiez fussent ayant ayante ayantes ayants eu eue eues eus ai as avons avez ont aurai auras aura aurons aurez auront aurais aurait aurions auriez auraient avais avait avions aviez avaient eut eûmes eûtes eurent aie aies ait ayons ayez aient eusse eusses eût eussions eussiez eussent ); } 1; HU.pm100644000765000024 376114036767103 21301 0ustar00helmutstaff000000000000Lingua-StopWords-0.12/lib/Lingua/StopWordspackage Lingua::StopWords::HU; use strict; use warnings; use utf8; use Encode qw(encode); use Exporter; our @ISA = qw(Exporter); our %EXPORT_TAGS = ( 'all' => [ qw( getStopWords ) ] ); our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } ); our $VERSION = 0.12; sub getStopWords { if ( @_ and $_[0] eq 'UTF-8' ) { my %stoplist = map { ( $_, 1 ) } _stopwords(); return \%stoplist; } else { my %stoplist = map { ( encode("iso-8859-2", $_), 1 ) } _stopwords(); return \%stoplist; } } sub _stopwords { return qw( a ahogy ahol aki akik akkor alatt által általában amely amelyek amelyekben amelyeket amelyet amelynek ami amit amolyan amíg amikor át abban ahhoz annak arra arról az azok azon azt azzal azért aztán azután azonban bár be belül benne cikk cikkek cikkeket csak de e eddig egész egy egyes egyetlen egyéb egyik egyre ekkor el elég ellen elő először előtt első én éppen ebben ehhez emilyen ennek erre ez ezt ezek ezen ezzel ezért és fel felé hanem hiszen hogy hogyan igen így illetve ill. ill ilyen ilyenkor ison ismét itt jó jól jobban kell kellett keresztül keressünk ki kívül között közül legalább lehet lehetett legyen lenne lenni lesz lett maga magát majd majd már más másik meg még mellett mert mely melyek mi mit míg miért milyen mikor minden mindent mindenki mindig mint mintha mivel most nagy nagyobb nagyon ne néha nekem neki nem néhány nélkül nincs olyan ott össze ő ők őket pedig persze rá s saját sem semmi sok sokat sokkal számára szemben szerint szinte talán tehát teljes tovább továbbá több úgy ugyanis új újabb újra után utána utolsó vagy vagyis valaki valami valamint való vagyok van vannak volt voltam voltak voltunk vissza vele viszont volna ); } 1; ID.pm100644000765000024 237414036767103 21260 0ustar00helmutstaff000000000000Lingua-StopWords-0.12/lib/Lingua/StopWordspackage Lingua::StopWords::ID; use strict; use warnings; use utf8; use Encode qw(encode); use Exporter; our @ISA = qw(Exporter); our %EXPORT_TAGS = ( 'all' => [ qw( getStopWords ) ] ); our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } ); our $VERSION = 0.12; sub getStopWords { if ( @_ and $_[0] eq 'UTF-8' ) { my %stoplist = map { ( $_, 1 ) } _stopwords(); return \%stoplist; } else { my %stoplist = map { ( encode("iso-8859-1", $_), 1 ) } _stopwords(); return \%stoplist; } } sub _stopwords { return qw( yang dan di dari ini pada kepada ada adalah dengan untuk dalam oleh sebagai juga ke atau tidak itu sebuah tersebut dapat ia telah satu memiliki mereka bahwa lebih karena seorang akan seperti secara kemudian beberapa banyak antara setelah yaitu hanya hingga serta sama dia tetapi namun melalui bisa sehingga ketika suatu sendiri bagi semua harus setiap maka maupun tanpa saja jika bukan belum sedangkan yakni meskipun hampir kita demikian daripada apa ialah sana begitu seseorang selain terlalu ataupun saya bila bagaimana tapi apabila kalau kami melainkan boleh aku anda kamu beliau kalian ); } 1; IT.pm100644000765000024 477414036767103 21306 0ustar00helmutstaff000000000000Lingua-StopWords-0.12/lib/Lingua/StopWordspackage Lingua::StopWords::IT; use strict; use warnings; use utf8; use Encode qw(encode); use Exporter; our @ISA = qw(Exporter); our %EXPORT_TAGS = ( 'all' => [ qw( getStopWords ) ] ); our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } ); our $VERSION = 0.12; sub getStopWords { if ( @_ and $_[0] eq 'UTF-8' ) { my %stoplist = map { ( $_, 1 ) } _stopwords(); return \%stoplist; } else { my %stoplist = map { ( encode("iso-8859-1", $_), 1 ) } _stopwords(); return \%stoplist; } } sub _stopwords { return qw( ad al allo ai agli all agl alla alle con col coi da dal dallo dai dagli dall dagl dalla dalle di del dello dei degli dell degl della delle in nel nello nei negli nell negl nella nelle su sul sullo sui sugli sull sugl sulla sulle per tra contro io tu lui lei noi voi loro mio mia miei mie tuo tua tuoi tue suo sua suoi sue nostro nostra nostri nostre vostro vostra vostri vostre mi ti ci vi lo la li le gli ne il un uno una ma ed se perché anche come dov dove che chi cui non più quale quanto quanti quanta quante quello quelli quella quelle questo questi questa queste si tutto tutti a c e i l o ho hai ha abbiamo avete hanno abbia abbiate abbiano avrò avrai avrà avremo avrete avranno avrei avresti avrebbe avremmo avreste avrebbero avevo avevi aveva avevamo avevate avevano ebbi avesti ebbe avemmo aveste ebbero avessi avesse avessimo avessero avendo avuto avuta avuti avute sono sei è siamo siete sia siate siano sarò sarai sarà saremo sarete saranno sarei saresti sarebbe saremmo sareste sarebbero ero eri era eravamo eravate erano fui fosti fu fummo foste furono fossi fosse fossimo fossero essendo faccio fai facciamo fanno faccia facciate facciano farò farai farà faremo farete faranno farei faresti farebbe faremmo fareste farebbero facevo facevi faceva facevamo facevate facevano feci facesti fece facemmo faceste fecero facessi facesse facessimo facessero facendo sto stai sta stiamo stanno stia stiate stiano starò starai starà staremo starete staranno starei staresti starebbe staremmo stareste starebbero stavo stavi stava stavamo stavate stavano stetti stesti stette stemmo steste stettero stessi stesse stessimo stessero stando ); } 1; NL.pm100644000765000024 214714036767103 21273 0ustar00helmutstaff000000000000Lingua-StopWords-0.12/lib/Lingua/StopWordspackage Lingua::StopWords::NL; use strict; use warnings; use utf8; use Encode qw(encode); use Exporter; our @ISA = qw(Exporter); our %EXPORT_TAGS = ( 'all' => [ qw( getStopWords ) ] ); our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } ); our $VERSION = 0.12; sub getStopWords { if ( @_ and $_[0] eq 'UTF-8' ) { my %stoplist = map { ( $_, 1 ) } _stopwords(); return \%stoplist; } else { my %stoplist = map { ( encode("iso-8859-1", $_), 1 ) } _stopwords(); return \%stoplist; } } sub _stopwords { return qw( de en van ik te dat die in een hij het niet zijn is was op aan met als voor had er maar om hem dan zou of wat mijn men dit zo door over ze zich bij ook tot je mij uit der daar haar naar heb hoe heeft hebben deze u want nog zal me zij nu ge geen omdat iets worden toch al waren veel meer doen toen moet ben zonder kan hun dus alles onder ja eens hier wie werd altijd doch wordt wezen kunnen ons zelf tegen na reeds wil kon niets uw iemand geweest andere ); } 1; NO.pm100644000765000024 306714036767103 21300 0ustar00helmutstaff000000000000Lingua-StopWords-0.12/lib/Lingua/StopWordspackage Lingua::StopWords::NO; use strict; use warnings; use utf8; use Encode qw(encode); use Exporter; our @ISA = qw(Exporter); our %EXPORT_TAGS = ( 'all' => [ qw( getStopWords ) ] ); our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } ); our $VERSION = 0.12; sub getStopWords { if ( @_ and $_[0] eq 'UTF-8' ) { my %stoplist = map { ( $_, 1 ) } _stopwords(); return \%stoplist; } else { my %stoplist = map { ( encode("iso-8859-1", $_), 1 ) } _stopwords(); return \%stoplist; } } sub _stopwords { return qw( og i jeg det at en et den til er som på de med han av ikke ikkje der så var meg seg men ett har om vi min mitt ha hadde hun nå over da ved fra du ut sin dem oss opp man kan hans hvor eller hva skal selv sjøl her alle vil bli ble blei blitt kunne inn når være kom noen noe ville dere som deres kun ja etter ned skulle denne for deg si sine sitt mot å meget hvorfor dette disse uten hvordan ingen din ditt blir samme hvilken hvilke sånn inni mellom vår hver hvem vors hvis både bare enn fordi før mange også slik vært være båe begge siden dykk dykkar dei deira deires deim di då eg ein eit eitt elles honom hjå ho hoe henne hennar hennes hoss hossen ikkje ingi inkje korleis korso kva kvar kvarhelst kven kvi kvifor me medan mi mine mykje no nokon noka nokor noko nokre si sia sidan so somt somme um upp vere vore verte vort varte vart ); } 1; PT.pm100644000765000024 405314036767103 21303 0ustar00helmutstaff000000000000Lingua-StopWords-0.12/lib/Lingua/StopWordspackage Lingua::StopWords::PT; use strict; use warnings; use utf8; use Encode qw(encode); use Exporter; our @ISA = qw(Exporter); our %EXPORT_TAGS = ( 'all' => [ qw( getStopWords ) ] ); our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } ); our $VERSION = 0.12; sub getStopWords { if ( @_ and $_[0] eq 'UTF-8' ) { my %stoplist = map { ( $_, 1 ) } _stopwords(); return \%stoplist; } else { my %stoplist = map { ( encode("iso-8859-1", $_), 1 ) } _stopwords(); return \%stoplist; } } sub _stopwords { return qw( de a o que e do da em um para com não uma os no se na por mais as dos como mas ao ele das à seu sua ou quando muito nos já eu também só pelo pela até isso ela entre depois sem mesmo aos seus quem nas me esse eles você essa num nem suas meu às minha numa pelos elas qual nós lhe deles essas esses pelas este dele tu te vocês vos lhes meus minhas teu tua teus tuas nosso nossa nossos nossas dela delas esta estes estas aquele aquela aqueles aquelas isto aquilo estou está estamos estão estive esteve estivemos estiveram estava estávamos estavam estivera estivéramos esteja estejamos estejam estivesse estivéssemos estivessem estiver estivermos estiverem hei há havemos hão houve houvemos houveram houvera houvéramos haja hajamos hajam houvesse houvéssemos houvessem houver houvermos houverem houverei houverá houveremos houverão houveria houveríamos houveriam sou somos são era éramos eram fui foi fomos foram fora fôramos seja sejamos sejam fosse fôssemos fossem for formos forem serei será seremos serão seria seríamos seriam tenho tem temos tém tinha tínhamos tinham tive teve tivemos tiveram tivera tivéramos tenha tenhamos tenham tivesse tivéssemos tivessem tiver tivermos tiverem terei terá teremos terão teria teríamos teriam ); } 1; RO.pm100644000765000024 446614036767103 21310 0ustar00helmutstaff000000000000Lingua-StopWords-0.12/lib/Lingua/StopWordspackage Lingua::StopWords::RO; use strict; use warnings; use utf8; use Encode qw(encode); use Exporter; our @ISA = qw(Exporter); our %EXPORT_TAGS = ( 'all' => [ qw( getStopWords ) ] ); our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } ); our $VERSION = 0.12; sub getStopWords { if ( @_ and $_[0] eq 'UTF-8' ) { my %stoplist = map { ( $_, 1 ) } _stopwords(); return \%stoplist; } else { my %stoplist = map { ( encode("iso-8859-2", $_), 1 ) } _stopwords(); return \%stoplist; } } sub _stopwords { return qw( a abia acea aceasta această această aceea aceia acel acela acelaşi acelaşi acele acelea aceluiaşi acest acesta aceste acestea acestei aceşti aceştia acestor acestora acestui acolo acum adică ai aia aici al ăla alături ale alt alta altă altceva alte altele altfel alţi alţii altul am anume apoi ar are aş aşa asemenea asta astăzi astfel asupra atare atât atâta atâtea atâţi atâţia aţi atît atîti atîţia atunci au avea avem avut azi ba bine ca că cam când care căreia cărora căruia cât câtă câte câţi către ce cea ceea cei ceilalţi cel cele celelalte celor ceva chiar ci cînd cine cineva cît cîte cîteva cîţi cîţiva cu cui cum cumva da daca dacă dar de deasupra decât deci decît deja deşi despre din dintr dintre doar după ea ei el ele era este eu fără fecăreia fel fi fie fiecare fiecărui fiecăruia fiind foarte fost i-au iar ieri îi îl îmi împotriva în în înainte înapoi înca încît însă însă însuşi într între între îşi îţi l-am la le li lor lui mă mai mare mereu mod mult multă multe mulţi ne nici niciodata nimeni nimic nişte noi noştri noştri nostru nouă nu numai o oarecare oarece oarecine oarecui or orice oricum până pe pentru peste pînă plus poată prea prin printr-o puţini s-ar sa să să-i să-mi să-şi să-ţi săi sale sau său se şi sînt sîntem sînteţi spre sub sunt suntem sunteţi te ţi toată toate tocmai tot toţi totul totuşi tu tuturor un una unde unei unele uneori unii unor unui unul va vă voi vom vor vreo vreun ); } 1; RU.pm100644000765000024 403114036767103 21302 0ustar00helmutstaff000000000000Lingua-StopWords-0.12/lib/Lingua/StopWordspackage Lingua::StopWords::RU; use strict; use warnings; use utf8; use Encode qw(encode); use Exporter; our @ISA = qw(Exporter); our %EXPORT_TAGS = ( 'all' => [ qw( getStopWords ) ] ); our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } ); our $VERSION = 0.12; sub getStopWords { if ( @_ and $_[0] eq 'UTF-8' ) { my %stoplist = map { ( $_, 1 ) } _stopwords(); return \%stoplist; } else { my %stoplist = map { ( encode("KOI8-R", $_), 1 ) } _stopwords(); return \%stoplist; } } sub _stopwords { return qw( и в во не что он на я с со как а то все она так его но да ты к у же вы за бы по только ее мне было вот от меня еще нет о из ему теперь когда даже ну вдруг ли если уже или ни быть был него до вас нибудь опять уж вам сказал ведь там потом себя ничего ей может они тут где есть надо ней для мы тебя их чем была сам чтоб без будто человек чего раз тоже себе под жизнь будет ж тогда кто этот говорил того потому этого какой совсем ним здесь этом один почти мой тем чтобы нее кажется сейчас были куда зачем сказать всех никогда сегодня можно при наконец два об другой хоть после над больше тот через эти нас про всего них какая много разве сказала три эту моя впрочем хорошо свою этой перед иногда лучше чуть том нельзя такой им более всегда конечно всю между ); } 1; SV.pm100644000765000024 233514036767103 21311 0ustar00helmutstaff000000000000Lingua-StopWords-0.12/lib/Lingua/StopWordspackage Lingua::StopWords::SV; use strict; use warnings; use utf8; use Encode qw(encode); use Exporter; our @ISA = qw(Exporter); our %EXPORT_TAGS = ( 'all' => [ qw( getStopWords ) ] ); our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } ); our $VERSION = 0.12; sub getStopWords { if ( @_ and $_[0] eq 'UTF-8' ) { my %stoplist = map { ( $_, 1 ) } _stopwords(); return \%stoplist; } else { my %stoplist = map { ( encode("iso-8859-1", $_), 1 ) } _stopwords(); return \%stoplist; } } sub _stopwords { return qw( och det att i en jag hon som han på den med var sig för så till är men ett om hade de av icke mig du henne då sin nu har inte hans honom skulle hennes där min man ej vid kunde något från ut när efter upp vi dem vara vad över än dig kan sina här ha mot alla under någon eller allt mycket sedan ju denna själv detta åt utan varit hur ingen mitt ni bli blev oss din dessa några deras blir mina samma vilken er sådan vår blivit dess inom mellan sådant varför varje vilka ditt vem vilket sitta sådana vart dina vars vårt våra ert era vilkas ); } 1;