przetak

package
v0.0.0-...-c4c1657 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package przetak implements a library for checking whether UTF-8 strings contain abusive or vulgar speech in Polish.

Index

Constants

View Source
const (
	// Three kinds of toxic speech.
	ABUSIVE  = int32(1)
	VULGAR_N = int32(2)
	VULGAR_P = int32(4)
	// Date of last modification of the package.
	VERSION = "2018-04-01"
)

Variables

This section is empty.

Functions

func Evaluate

func Evaluate(s string) int32

Evaluate returns a bit mask whose ABUSIVE, VULGAR_N, and VULGAR_P bits are set if s contains abusive words, vulgar words with negative connotations, or vulgar words with positive connotations in Polish, respectively.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL