<commit_before>// Package petrovich provides methods to inflect Russian first, last, and middle names.
package petrovich

//go:generate go run rules-generator/rules-generator.go

import (
	"strings"
	"unicode/utf8"
)

type Gender int
<commit_msg>Extend documentation<commit_after>// Package petrovich provides methods to inflect Russian first, last, and
// middle names.
//
// This is the Go port of https://github.com/petrovich. All implementations use
// common rules from https://github.com/petrovich/petrovich-rules.
//
// Usage:
//
//     n := petrovich.FirstName("Кузьма", petrovich.Male, petrovich.Genitive)
//     fmt.Print(n) // "Кузьмы"
//
//     n = petrovich.LastName("Петров-Водкин", petrovich.Male, petrovich.Prepositional)
//     fmt.Print(n) // "Петрове-Водкине"
//
package petrovich

//go:generate go run rules-generator/rules-generator.go

import (
	"strings"
	"unicode/utf8"
)

type Gender int

{'fraction_non_alphanumeric': 0.13362541073384446, 'fraction_numerical': 0.002190580503833516, 'mean_word_length': 3.6161616161616164, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3771441', 'n_tokens_mistral': 321, 'n_tokens_neox': 317, 'n_words': 78}