{"id":13413996,"url":"https://github.com/striker2000/petrovich","last_synced_at":"2026-01-22T12:58:50.857Z","repository":{"id":57492132,"uuid":"77410680","full_name":"striker2000/petrovich","owner":"striker2000","description":"Golang port of Petrovich - an inflector for Russian anthroponyms.","archived":false,"fork":false,"pushed_at":"2023-11-29T23:24:40.000Z","size":26,"stargazers_count":46,"open_issues_count":0,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-07-31T20:53:14.336Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/striker2000.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-12-26T22:50:38.000Z","updated_at":"2024-06-13T19:36:07.000Z","dependencies_parsed_at":"2024-01-09T08:11:41.633Z","dependency_job_id":null,"html_url":"https://github.com/striker2000/petrovich","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/striker2000/petrovich","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/striker2000%2Fpetrovich","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/striker2000%2Fpetrovich/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/striker2000%2Fpetrovich/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/striker2000%2Fpetrovich/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/striker2000","download_url":"https://codeload.github.com/striker2000/petrovich/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/striker2000%2Fpetrovich/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28663774,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T01:17:37.254Z","status":"online","status_checked_at":"2026-01-22T02:00:07.137Z","response_time":144,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-30T20:01:54.762Z","updated_at":"2026-01-22T12:58:50.834Z","avatar_url":"https://github.com/striker2000.png","language":"Go","funding_links":[],"categories":["Text Processing","自然语言处理","文本处理","Natural Language Processing","Bot Building","\u003cspan id=\"自然语言处理-natural-language-processing\"\u003e自然语言处理 Natural Language Processing\u003c/span\u003e","Template Engines","Relational Databases"],"sub_categories":["Utility/Miscellaneous","暂未分类","实用程序/Miscellaneous","Advanced Console UIs","Strings","\u003cspan id=\"高级控制台用户界面-advanced-console-uis\"\u003e高级控制台用户界面 Advanced Console UIs\u003c/span\u003e","Uncategorized","交流","暂未分类这些库被放在这里是因为其他类别似乎都不适合。"],"readme":"![Petrovich](petrovich.png)\n\nPetrovich is the library which inflects Russian names to given grammatical case.\n\nThis is the Go port of https://github.com/petrovich.\n\n[![GoDoc](https://godoc.org/github.com/striker2000/petrovich?status.svg)](https://godoc.org/github.com/striker2000/petrovich)\n[![Build Status](https://travis-ci.org/striker2000/petrovich.svg?branch=master)](https://travis-ci.org/striker2000/petrovich)\n[![Coverage Status](https://coveralls.io/repos/github/striker2000/petrovich/badge.svg?branch=master)](https://coveralls.io/github/striker2000/petrovich?branch=master)\n[![Go Report Card](https://goreportcard.com/badge/github.com/striker2000/petrovich)](https://goreportcard.com/report/github.com/striker2000/petrovich)\n\n## Installation\n\n```\ngo get github.com/striker2000/petrovich\n```\n\n## Usage\n\nAll functions takes three arguments: name in nominative case, gender and grammatical case.\n\n```go\nimport \"github.com/striker2000/petrovich\"\n\nn := petrovich.FirstName(\"Кузьма\", petrovich.Male, petrovich.Genitive)\nfmt.Print(n) // \"Кузьмы\"\n\nn = petrovich.MiddleName(\"Сергеевич\", petrovich.Male, petrovich.Instrumental)\nfmt.Print(n) // \"Сергеевичем\"\n\nn = petrovich.LastName(\"Петров-Водкин\", petrovich.Male, petrovich.Prepositional)\nfmt.Print(n) // \"Петрове-Водкине\"\n```\n\nValid values for gender are `petrovich.Androgynous`, `petrovich.Male` and `petrovich.Female`.\n\nFull list of grammatical cases is in the table below.\n\n| Case                      | Case (in Russian) | Question (in Russian)  |\n|---------------------------|-------------------|------------------------|\n| `petrovich.Nominative`    | Именительный      | Кто?                   |\n| `petrovich.Genitive`      | Родительный       | Кого?                  |\n| `petrovich.Dative`        | Дательный         | Кому?                  |\n| `petrovich.Accusative`    | Винительный       | Кого?                  |\n| `petrovich.Instrumental`  | Творительный      | Кем?                   |\n| `petrovich.Prepositional` | Предложный        | О ком?                 |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstriker2000%2Fpetrovich","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstriker2000%2Fpetrovich","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstriker2000%2Fpetrovich/lists"}