porterstemmer

package module
v0.0.0-...-ef0cb4e Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: BSD-2-Clause Imports: 1 Imported by: 0

README

Go Porter Stemmer for italian language

A native Go implementation of the Porter Stemmer Algorithm for the italian language with a public API compatible with go-porterstemmer.

NOTE: this package needs a lot more testing before I can consider it stable.

For more informations see:

http://snowball.tartarus.org/algorithms/italian/stemmer.html

Usage

A basic example:

package main

import (
	"fmt"
	"github.com/piger/go-porterstemmer-it"
)

func main() {
	word := "abbandonerò"
	stem := porterstemmer.Stem(word)
	fmt.Printf("The word %q has the stem %q\n", word, stem)
}

Documentation

Overview

An implementation of the Porter Stemming algorithm for the italian language.

See: http://snowball.tartarus.org/algorithms/italian/stemmer.html

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Join

func Join(a, b []rune) []rune

func Stem

func Stem(s []rune) []rune

Stem returns the italian stemming for the word s, lowercased.

func StemString

func StemString(s string) string

Stem returns the italian stemming for the string s, lowercased.

func StemWithoutLowerCasing

func StemWithoutLowerCasing(s []rune) []rune

StemWithoutLowerCasing returns the italian stemming for the word s.

Types

This section is empty.

Jump to

Keyboard shortcuts

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