petrovich alternatives and similar packages
Based on the "Natural Language Processing" category.
Alternatively, view petrovich alternatives based on common mentions on social networks and blogs.
-
prose
DISCONTINUED. :book: A Golang library for text processing, including tokenization, part-of-speech tagging, and named-entity extraction. -
gse
Go efficient multilingual NLP and text segmentation; support English, Chinese, Japanese and others. -
universal-translator
:speech_balloon: i18n Translator for Go/Golang using CLDR data + pluralization rules -
locales
:earth_americas: a set of locales generated from the CLDR Project which can be used independently or within an i18n package; these were built for use with, but not exclusive to https://github.com/go-playground/universal-translator -
segment
A Go library for performing Unicode Text Segmentation as described in Unicode Standard Annex #29 -
go-nlp
DISCONTINUED. Utilities for working with discrete probability distributions and other tools useful for doing NLP work. -
go-localize
i18n (Internationalization and localization) engine written in Go, used for translating locale strings. -
gotokenizer
A tokenizer based on the dictionary and Bigram language models for Go. (Now only support chinese segmentation)
CodeRabbit: AI Code Reviews for Developers
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of petrovich or a related project?
README
[Petrovich](petrovich.png)
Petrovich is the library which inflects Russian names to given grammatical case.
This is the Go port of https://github.com/petrovich.
Installation
go get github.com/striker2000/petrovich
Usage
All functions takes three arguments: name in nominative case, gender and grammatical case.
import "github.com/striker2000/petrovich"
n := petrovich.FirstName("Кузьма", petrovich.Male, petrovich.Genitive)
fmt.Print(n) // "Кузьмы"
n = petrovich.MiddleName("Сергеевич", petrovich.Male, petrovich.Instrumental)
fmt.Print(n) // "Сергеевичем"
n = petrovich.LastName("Петров-Водкин", petrovich.Male, petrovich.Prepositional)
fmt.Print(n) // "Петрове-Водкине"
Valid values for gender are petrovich.Androgynous
, petrovich.Male
and petrovich.Female
.
Full list of grammatical cases is in the table below.
Case | Case (in Russian) | Question (in Russian) |
---|---|---|
petrovich.Nominative |
Именительный | Кто? |
petrovich.Genitive |
Родительный | Кого? |
petrovich.Dative |
Дательный | Кому? |
petrovich.Accusative |
Винительный | Кого? |
petrovich.Instrumental |
Творительный | Кем? |
petrovich.Prepositional |
Предложный | О ком? |