Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

stemming

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stemming - npm Package Compare versions

Comparing version
1.0
to
1.0.1
+4
-4
PKG-INFO
Metadata-Version: 1.0
Name: stemming
Version: 1.0
Version: 1.0.1
Summary: Python implementations of various stemming algorithms.

@@ -32,5 +32,5 @@ Home-page: http://bitbucket.org/mchaput/stemming

>> from stemming.porter2 import stem
>> stem("factionally")
faction
>> from stemming.porter2 import stem
>> stem("factionally")
faction

@@ -37,0 +37,0 @@ (The Paice-Husk algorithm allows custom stemming rule sets, so the

@@ -8,3 +8,3 @@ #!python

name = "stemming",
version = "1.0",
version = "1.0.1",
#package_dir = {'': ''},

@@ -11,0 +11,0 @@ packages = ["stemming"],

Metadata-Version: 1.0
Name: stemming
Version: 1.0
Version: 1.0.1
Summary: Python implementations of various stemming algorithms.

@@ -32,5 +32,5 @@ Home-page: http://bitbucket.org/mchaput/stemming

>> from stemming.porter2 import stem
>> stem("factionally")
faction
>> from stemming.porter2 import stem
>> stem("factionally")
faction

@@ -37,0 +37,0 @@ (The Paice-Husk algorithm allows custom stemming rule sets, so the

@@ -125,3 +125,3 @@ """An implementation of the Porter2 stemming algorithm.

def step_1c(word):
if word.endswith('y') or word.endswith('Y'):
if word.endswith('y') or word.endswith('Y') and len(word) > 1:
if word[-2] not in 'aeiouy':

@@ -285,2 +285,6 @@ if len(word) > 2:

if __name__ == "__main__":
assert stem("bill's") == "bill"
assert stem("y's") == "y"