Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def porter_stem(s):
if isinstance(s, bytes):
raise TypeError(_no_bytes_err)
return Stemmer(s).stem()
def porter_stem(s):
_check_type(s)
return Stemmer(s).stem()