Hello community,
here is the log from the commit of package perl-Lingua-EN-Sentence for
openSUSE:Factory checked in at 2016-08-12 15:43:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Lingua-EN-Sentence (Old)
and /work/SRC/openSUSE:Factory/.perl-Lingua-EN-Sentence.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Lingua-EN-Sentence"
Changes:
--------
---
/work/SRC/openSUSE:Factory/perl-Lingua-EN-Sentence/perl-Lingua-EN-Sentence.changes
2015-06-11 08:22:57.000000000 +0200
+++
/work/SRC/openSUSE:Factory/.perl-Lingua-EN-Sentence.new/perl-Lingua-EN-Sentence.changes
2016-08-12 15:43:40.000000000 +0200
@@ -1,0 +2,13 @@
+Tue Aug 9 05:38:09 UTC 2016 - [email protected]
+
+- updated to 0.30
+ see /usr/share/doc/packages/perl-Lingua-EN-Sentence/Changes
+
+
+ 0.30 Aug 08 2016
+ used github as repository
+ added more abbreviations
+ set the default character set to en_US.UTF-8
+ added example/demo.pl script
+
+-------------------------------------------------------------------
Old:
----
Lingua-EN-Sentence-0.29.tar.gz
New:
----
Lingua-EN-Sentence-0.30.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-Lingua-EN-Sentence.spec ++++++
--- /var/tmp/diff_new_pack.MGfZlK/_old 2016-08-12 15:43:41.000000000 +0200
+++ /var/tmp/diff_new_pack.MGfZlK/_new 2016-08-12 15:43:41.000000000 +0200
@@ -1,7 +1,7 @@
#
# spec file for package perl-Lingua-EN-Sentence
#
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,10 +17,10 @@
Name: perl-Lingua-EN-Sentence
-Version: 0.29
+Version: 0.30
Release: 0
%define cpan_name Lingua-EN-Sentence
-Summary: Module for splitting text into sentences
+Summary: Split Text Into Sentences
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Lingua-EN-Sentence/
@@ -32,10 +32,8 @@
BuildRequires: perl-macros
BuildRequires: perl(Module::Build) >= 0.380000
BuildRequires: perl(Test::More) >= 0.94
-BuildRequires: perl(strict) >= 1.04
BuildRequires: perl(utf8) >= 1.09
BuildRequires: perl(warnings) >= 1.12
-Requires: perl(strict) >= 1.04
Requires: perl(utf8) >= 1.09
Requires: perl(warnings) >= 1.12
%{perl_requires}
@@ -45,7 +43,7 @@
which splits text into its constituent sentences, based on a regular
expression and a list of abbreviations (built in and given).
-Certain well know exceptions, such as abreviations, may cause incorrect
+Certain well know exceptions, such as abbreviations, may cause incorrect
segmentations. But some of them are already integrated into this code and
are being taken care of. Still, if you see that there are words causing the
get_sentences() to fail, you can add those to the module, so it notices
@@ -68,6 +66,6 @@
%files -f %{name}.files
%defattr(-,root,root,755)
-%doc Changes README
+%doc Changes examples LICENCE README
%changelog
++++++ Lingua-EN-Sentence-0.29.tar.gz -> Lingua-EN-Sentence-0.30.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Lingua-EN-Sentence-0.29/Changes
new/Lingua-EN-Sentence-0.30/Changes
--- old/Lingua-EN-Sentence-0.29/Changes 2015-05-25 06:05:07.000000000 +0200
+++ new/Lingua-EN-Sentence-0.30/Changes 2016-08-08 09:08:48.000000000 +0200
@@ -94,3 +94,10 @@
0.29 May 25 2015
Fixed RT bug #104637 [PATCH]improve documentation on acronym input
Removed redundant call that remained after 104419 patch was applied
+
+0.30 Aug 08 2016
+ used github as repository
+ added more abbreviations
+ set the default character set to en_US.UTF-8
+ added example/demo.pl script
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Lingua-EN-Sentence-0.29/LICENCE
new/Lingua-EN-Sentence-0.30/LICENCE
--- old/Lingua-EN-Sentence-0.29/LICENCE 1970-01-01 01:00:00.000000000 +0100
+++ new/Lingua-EN-Sentence-0.30/LICENCE 2016-07-04 08:12:54.000000000 +0200
@@ -0,0 +1,378 @@
+This software is copyright (c) 2016 by Kim Ryan.
+
+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) 2016 by Kim Ryan.
+
+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, Suite 500, Boston, MA 02110-1335 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.
+
+ <one line to give the program's name and a brief idea of what it does.>
+ Copyright (C) 19yy <name of author>
+
+ 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.
+
+ <signature of Ty Coon>, 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) 2016 by Kim Ryann.
+
+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
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Lingua-EN-Sentence-0.29/MANIFEST
new/Lingua-EN-Sentence-0.30/MANIFEST
--- old/Lingua-EN-Sentence-0.29/MANIFEST 2015-03-12 07:33:31.000000000
+0100
+++ new/Lingua-EN-Sentence-0.30/MANIFEST 2016-08-08 08:43:14.000000000
+0200
@@ -1,8 +1,10 @@
Changes
README
MANIFEST
+LICENCE
Makefile.PL
lib/Lingua/EN/Sentence.pm
t/main.t
+examples/demo.pl
META.yml
META.json
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Lingua-EN-Sentence-0.29/META.json
new/Lingua-EN-Sentence-0.30/META.json
--- old/Lingua-EN-Sentence-0.29/META.json 2015-05-25 06:06:10.000000000
+0200
+++ new/Lingua-EN-Sentence-0.30/META.json 2016-08-08 09:09:00.000000000
+0200
@@ -4,7 +4,7 @@
"Shlomo Yona, Kim Ryan <kimryan at cpan org>"
],
"dynamic_config" : 1,
- "generated_by" : "Module::Build version 0.421",
+ "generated_by" : "Module::Build version 0.4208",
"license" : [
"perl_5"
],
@@ -26,8 +26,6 @@
},
"runtime" : {
"requires" : {
- "locale" : "1",
- "strict" : "1.04",
"warnings" : "1.12"
}
}
@@ -35,14 +33,18 @@
"provides" : {
"Lingua::EN::Sentence" : {
"file" : "lib/Lingua/EN/Sentence.pm",
- "version" : "0.29"
+ "version" : "0.30"
}
},
"release_status" : "stable",
"resources" : {
"license" : [
"http://dev.perl.org/licenses/"
- ]
+ ],
+ "repository" : {
+ "url" : "https://github.com/kimryan/Lingua-EN-Sentence"
+ }
},
- "version" : "0.29"
+ "version" : "0.30",
+ "x_serialization_backend" : "JSON::PP version 2.27300"
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Lingua-EN-Sentence-0.29/META.yml
new/Lingua-EN-Sentence-0.30/META.yml
--- old/Lingua-EN-Sentence-0.29/META.yml 2015-05-25 06:06:10.000000000
+0200
+++ new/Lingua-EN-Sentence-0.30/META.yml 2016-08-08 09:09:00.000000000
+0200
@@ -7,7 +7,7 @@
configure_requires:
Module::Build: '0.38'
dynamic_config: 1
-generated_by: 'Module::Build version 0.421, CPAN::Meta::Converter version
2.142060'
+generated_by: 'Module::Build version 0.4208, CPAN::Meta::Converter version
2.150005'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -16,11 +16,11 @@
provides:
Lingua::EN::Sentence:
file: lib/Lingua/EN/Sentence.pm
- version: '0.29'
+ version: '0.30'
requires:
- locale: '1'
- strict: '1.04'
warnings: '1.12'
resources:
license: http://dev.perl.org/licenses/
-version: '0.29'
+ repository: https://github.com/kimryan/Lingua-EN-Sentence
+version: '0.30'
+x_serialization_backend: 'CPAN::Meta::YAML version 0.016'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Lingua-EN-Sentence-0.29/Makefile.PL
new/Lingua-EN-Sentence-0.30/Makefile.PL
--- old/Lingua-EN-Sentence-0.29/Makefile.PL 2015-03-11 23:40:18.000000000
+0100
+++ new/Lingua-EN-Sentence-0.30/Makefile.PL 2016-08-08 08:47:10.000000000
+0200
@@ -11,6 +11,16 @@
'warnings' => 1.12,
},
'AUTHOR' => 'Shlomo Yona, Kim Ryan',
- 'LICENSE' => 'perl'
+ 'LICENSE' => 'perl',
+ META_MERGE => {
+ 'meta-spec' => { version => 2 },
+ resources => {
+ repository => {
+ type => 'git',
+ url => 'https://github.com/dwimperl/Task-DWIM.git',
+ web => 'https://github.com/dwimperl/Task-DWIM',
+ },
+ },
+ }
);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Lingua-EN-Sentence-0.29/README
new/Lingua-EN-Sentence-0.30/README
--- old/Lingua-EN-Sentence-0.29/README 2015-03-12 07:33:04.000000000 +0100
+++ new/Lingua-EN-Sentence-0.30/README 2016-08-08 08:37:03.000000000 +0200
@@ -1,10 +1,29 @@
+
NAME
- Lingua::EN::Sentence
+ Lingua::EN::Sentence - split text into sentences
+
+SYNOPSIS
+
+ use Lingua::EN::Sentence qw( get_sentences add_acronyms );
+ add_acronyms('lt','gen'); ## adding support for 'Lt. Gen.'
+ my $sentences=get_sentences($text); ## Get the sentences.
+ foreach my $sentence (@$sentences) {
+ ## do something with $sentence
+ }
+
DESCRIPTION
+
+The C<Lingua::EN::Sentence> module contains the function get_sentences, which
+splits text into its constituent sentences, based on a regular expression and a
+list of abbreviations (built in and given).
+
+Certain well know exceptions, such as abbreviations, may cause incorrect
+segmentations. But some of them are already integrated into this code and are
+being taken care of. Still, if you see that there are words causing the
+get_sentences() to fail, you can add those to the module, so it notices them.
- Module for splitting text into sentences.
INSTALLATION
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Lingua-EN-Sentence-0.29/examples/demo.pl
new/Lingua-EN-Sentence-0.30/examples/demo.pl
--- old/Lingua-EN-Sentence-0.29/examples/demo.pl 1970-01-01
01:00:00.000000000 +0100
+++ new/Lingua-EN-Sentence-0.30/examples/demo.pl 2016-08-08
08:30:56.000000000 +0200
@@ -0,0 +1,44 @@
+=head
+
+Demo program of CPAN module Lingua::EN::Sentence, sentence splitter
+
+=cut
+
+use strict;
+use warnings;
+
+
+use Lingua::EN::Sentence qw( get_sentences add_acronyms get_EOS set_EOS
set_locale);
+
+my $text = q{First sentence.
+12. point 12
+Some numbers 12.46, -.123,3:.
+Some ‘utf quotes wrap this’ “And more”};
+
+# Filter out common multi byte characters, such as the utf symbols for curly
quotes
+# These will cause wide character warnings to be issued
+$text =~ s/‘/'/g;
+$text =~ s/’/'/g;
+$text =~ s/“/"/g;
+$text =~ s/”/"/g;
+
+# Change lines starting with numbered points from x. to x) to avoid confusion
with dots
+$text =~ s/\n(\d{1,})./\n$1\)/g;
+
+
+print("Started\n");
+my $sentences=get_sentences($text); ## Get the sentences.
+my $num_sentences = (@$sentences);
+
+print("There are: $num_sentences sentences\n" );
+my $i;
+foreach my $sent (@$sentences)
+{
+ $i++;
+ print("SENTENCE $i >>>$sent<<<\n");
+}
+
+
+
+
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Lingua-EN-Sentence-0.29/lib/Lingua/EN/Sentence.pm
new/Lingua-EN-Sentence-0.30/lib/Lingua/EN/Sentence.pm
--- old/Lingua-EN-Sentence-0.29/lib/Lingua/EN/Sentence.pm 2015-05-25
06:04:54.000000000 +0200
+++ new/Lingua-EN-Sentence-0.30/lib/Lingua/EN/Sentence.pm 2016-08-08
08:37:29.000000000 +0200
@@ -8,7 +8,7 @@
=head1 NAME
-Lingua::EN::Sentence - Module for splitting text into sentences.
+Lingua::EN::Sentence - split text into sentences
=head1 SYNOPSIS
@@ -27,7 +27,7 @@
splits text into its constituent sentences, based on a regular expression and a
list of abbreviations (built in and given).
-Certain well know exceptions, such as abreviations, may cause incorrect
+Certain well know exceptions, such as abbreviations, may cause incorrect
segmentations. But some of them are already integrated into this code and are
being taken care of. Still, if you see that there are words causing the
get_sentences() to fail, you can add those to the module, so it notices them.
@@ -133,6 +133,10 @@
=head1 SEE ALSO
Text::Sentence
+
+=head1 REPOSITORY
+
+L<https://github.com/kimryan/Lingua-EN-Sentence>
=head1 AUTHOR
@@ -142,10 +146,8 @@
=head1 COPYRIGHT
-Copyright (c) 2001-2015 Shlomo Yona. All rights reserved.
+Copyright (c) 2001-2016 Shlomo Yona. All rights reserved.
-This library is free software.
-You can redistribute it and/or modify it under the same terms as Perl itself.
=cut
@@ -181,13 +183,12 @@
use Carp qw/cluck/;
use English;
-our $VERSION = '0.29';
+our $VERSION = '0.30';
-# LC_CTYPE now in locale "French, Canada, codeset ISO 8859-1"
our $LOC;
if ($OSNAME ne 'android') {
# Call POSIX function
- $LOC= setlocale(LC_CTYPE, "fr_CA.ISO8859-1");
+ $LOC= setlocale(LC_CTYPE, "en_US.UTF-8");
}
@@ -198,30 +199,27 @@
our $EOS="\001";
-our $P = q/[\.!?]/; ## PUNCTUATION
-#$AP = q/(?:'|"|?|\)|\]|\})?/; ## AFTER PUNCTUATION Kim change
-$AP = q/(?:'|"|\?|\)|\]|\})?/; ## AFTER PUNCTUATION
+our $P = q/[\.!?]/; # PUNCTUATION
+
+$AP = q/(?:'|"|\?|\)|\]|\})?/; # AFTER PUNCTUATION
our $PAP = $P.$AP;
-my @PEOPLE = qw( mr mrs ms dr prof mme ms?gr sens? reps? gov attys? supt det
revd? ald);
+my @PEOPLE = qw( mr mrs ms dr prof mme ms?gr sens? reps? gov attys? supt insp
const det revd? ald rt hon);
my @TITLE_SUFFIXES = qw(PhD jn?r sn?r esq md llb);
-my @MILITARY = qw( col gen lt cmdr adm capt sgt cpl maj pte cdr);
+my @MILITARY = qw( col gen lt cdr cmdr adm capt sgt cpl maj pte);
my @INSTITUTES = qw( dept univ assn bros);
my @COMPANIES = qw( inc ltd co corp);
my @PLACES =
qw(
arc al ave blv?d cl ct cres dr expy? fw?y hwa?y la pde? pl plz rd st
tce
dist mt km in ft
- Ala Ariz Ark Cal Calif Col Colo Conn
- Del Fed Fla Ga Ida Id Ill Ind Ia
- Kan Kans Ken Ky La Me Md Is Mass
- Mich Minn Miss Mo Mont Neb Nebr Nev
- Mex Okla Ok Ore Penna Penn Pa Dak
- Tenn Tex Ut Vt Va Wash Wis Wisc Wy
- Wyo USAFA Alta Man Ont Qu? Sask Yuk
+ Ala Ariz Ark Cal Calif Col Colo Conn Del Fed Fla Ga Ida Id Ill Ind Ia
Kan Kans Ken Ky
+ La Me Md Is Mass Mich Minn Miss Mo Mont Neb Nebr Nev Mex Okla Ok Ore
Penna Penn Pa Dak
+ Tenn Tex Ut Vt Va Wash Wis Wisc Wy Wyo USAFA Alta Man Ont Qu? Sask Yuk
+ Aust Vic Qld Tas
);
-my @MONTHS = qw(jan feb mar apr may jun jul aug sep oct nov dec sept);
-my @MISC = qw(no esp);
+my @MONTHS = qw(jan feb mar apr may jun jul aug sep sept oct nov dec);
+my @MISC = qw(no esp est); # Established
my @LATIN = qw(vs etc al ibid sic);
our @ABBREVIATIONS = (@PEOPLE, @TITLE_SUFFIXES, @MILITARY, @INSTITUTES,
@COMPANIES, @PLACES, @MONTHS, @MISC, @LATIN );
@@ -361,9 +359,10 @@
$marked_segment=~s/([^-\w]\w$PAP\s)$EOS/$1/sg;
$marked_segment=~s/([^-\w]\w$P)$EOS/$1/sg;
- # don't split after a white-space followed by a single letter followed
- # by a dot followed by another whitespace.
- $marked_segment=~s/(\s\w\.\s+)$EOS/$1/sg;
+ # don't split after a white-space followed by a single letter or number
followed
+ # by a dot followed by another whitespace., such as "Something. 1.
point one"
+ # Note: will fail for 12. Point 12
+ $marked_segment=~s/(\s[\w\d]\.\s+)$EOS/$1/sg;
# fix: bla bla... yada yada
$marked_segment=~s/(\.\.\. )$EOS([[:lower:]])/$1$2/sg;
@@ -387,7 +386,9 @@
sub split_unsplit_stuff {
my ($text) = @_;
- $text=~s/(\D\d+)($P)(\s+)/$1$2$EOS$3/sg;
+ # $text=~s/(\D\d+)($P)(\s+)/$1$2$EOS$3/sg; # breaks numbered points,
such as {EOL}1. point one
+
+ $text=~s/([\w $P]\d)($P)(\s+)/$1$2$EOS$3/sg;
$text=~s/($PAP\s)(\s*\()/$1$EOS$2/gs;
$text=~s/('\w$P)(\s)/$1$EOS$2/gs;
@@ -398,7 +399,7 @@
## # notice these are exceptions to the general rule NOT to split on single
## # letter.
## # notice also that sibgle letter M is missing here, due to French
'mister'
-## # which is representes as M.
+## # which is represented as M.
## #
## # the rule will not split on names begining or containing
## # single capital letter dot in the first or second name
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Lingua-EN-Sentence-0.29/t/main.t
new/Lingua-EN-Sentence-0.30/t/main.t
--- old/Lingua-EN-Sentence-0.29/t/main.t 2015-03-12 00:04:16.000000000
+0100
+++ new/Lingua-EN-Sentence-0.30/t/main.t 2016-08-08 08:40:41.000000000
+0200
@@ -1,5 +1,5 @@
#------------------------------------------------------------------------------
-# Test script for Lingua::EN::::Sentence.pm
+# Test script for Lingua::EN::Sentence.pm
#
# Author : Kim Ryan,
# Last update : 2015-03-10
@@ -17,19 +17,20 @@
use Lingua::EN::Sentence qw( get_sentences add_acronyms get_acronyms);
my $par = q{
-Returns the number of sentences in string. A sentence ends with a dot
-exclamtion or question mark followed by a space! Dots in abbreviations such as
e.g. are ignored, as well as common
-abbreviations such as Dr. Ms. esp. Apr. Calif. and Ave. insitals such as 'Mr.
A. Smith' plus more?
-Dots in muti word abrreviatons such as U.S.A are also ignored.
+Returns the number of sentences in string.
+A sentence ends with a dot, exclamation or question mark followed by a space!
+Dots after single letters such as U.S.A or e.g. are ignored,
+ as well as common abbreviations such as Dr. Ms. esp. Apr. Calif. and Ave.,
+ initials such as 'Mr. A. Smith'.
This string has 4 sentences.
};
my $sentences=get_sentences($par);
-is( @$sentences, 5,'sub sentence_count');
+is( @$sentences, 4,'sub sentence_count');
-$par .= 'Now add an acronym, such as qld. for Queensland to the paragraph.';
-add_acronyms('Qld');
+$par .= 'Now add an acronym, such as ret. for retired.';
+add_acronyms('Ret');
$sentences=get_sentences($par);
-is( @$sentences, 6,'sub add_acronyms');
+is( @$sentences, 5,'sub add_acronyms');