{"id":42669042,"url":"https://github.com/mdm-code/prg2p","last_synced_at":"2026-01-29T10:22:35.218Z","repository":{"id":57705812,"uuid":"441192373","full_name":"mdm-code/prg2p","owner":"mdm-code","description":"Grapheme-to-phoneme rule-based converter for Polish in Go.","archived":false,"fork":false,"pushed_at":"2024-01-25T20:42:30.000Z","size":53,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-21T03:18:15.755Z","etag":null,"topics":["cli","converter","filter","g2p","go","golang","golang-package","grapheme-to-phoneme","natural-language-processing","nlp","nlproc","tui"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/mdm-code/prg2p","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/mdm-code.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-23T13:41:08.000Z","updated_at":"2023-09-26T12:03:38.000Z","dependencies_parsed_at":"2024-01-25T21:46:49.438Z","dependency_job_id":null,"html_url":"https://github.com/mdm-code/prg2p","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/mdm-code/prg2p","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdm-code%2Fprg2p","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdm-code%2Fprg2p/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdm-code%2Fprg2p/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdm-code%2Fprg2p/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mdm-code","download_url":"https://codeload.github.com/mdm-code/prg2p/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdm-code%2Fprg2p/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28875450,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T09:47:23.353Z","status":"ssl_error","status_checked_at":"2026-01-29T09:47:19.357Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cli","converter","filter","g2p","go","golang","golang-package","grapheme-to-phoneme","natural-language-processing","nlp","nlproc","tui"],"created_at":"2026-01-29T10:22:34.417Z","updated_at":"2026-01-29T10:22:35.210Z","avatar_url":"https://github.com/mdm-code.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  \u003cdiv\u003e\n    \u003cimg src=\"https://raw.githubusercontent.com/mdm-code/mdm-code.github.io/main/prg2p_logo.png\" alt=\"logo\"/\u003e\n  \u003c/div\u003e\n\u003c/h1\u003e\n\n\u003ch4 align=\"center\"\u003eGrapheme-to-phoneme converter for Polish in Go\u003c/h4\u003e\n\n\u003cdiv align=\"center\"\u003e\n\u003cp\u003e\n    \u003ca href=\"https://github.com/mdm-code/prg2p/actions?query=workflow%3ACI\"\u003e\n        \u003cimg alt=\"Build status\" src=\"https://github.com/mdm-code/prg2p/workflows/CI/badge.svg\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://app.codecov.io/gh/mdm-code/prg2p\"\u003e\n        \u003cimg alt=\"Code coverage\" src=\"https://codecov.io/gh/mdm-code/prg2p/branch/main/graphs/badge.svg?branch=main\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://opensource.org/licenses/MIT\" rel=\"nofollow\"\u003e\n        \u003cimg alt=\"MIT license\" src=\"https://img.shields.io/github/license/mdm-code/prg2p\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://goreportcard.com/report/github.com/mdm-code/prg2p\"\u003e\n        \u003cimg alt=\"Go report card\" src=\"https://goreportcard.com/badge/github.com/mdm-code/prg2p\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://pkg.go.dev/github.com/mdm-code/prg2p\"\u003e\n        \u003cimg alt=\"Go package docs\" src=\"https://img.shields.io/badge/go.dev-reference-007d9c?logo=go\u0026logoColor=white\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\u003c/div\u003e\n\nThe `prg2p` package implements a grapheme-to-phoneme rule based converter for\nPolish.\n\nIt provides a standalone command-line program to process data efficiently on\nthe terminal and exposes the public API components of the package for code\nreuse.\n\nConsult the [package documentation](https://pkg.go.dev/github.com/mdm-code/prg2p)\nor check [Usage](#usage) section below to see how to use `prg2p` in your code.\n\n\n## Installation\n\nTo add package to a Go project dependencies run the following command:\n\n```sh\ngo get github.com/mdm-code/prg2p\n```\n\nIn order to use the CLI program, you need to use this command:\n\n```sh\ngo install github.com/mdm-code/prg2p@latest\n```\n\nHere, you can use the `@latest` or any version you find appropriate for that\nmatter.\n\n\n## Usage\n\nType `prg2p -h` from the terminal after installing executables as described\n[here](#installation) to see how to use `prg2p` command-line interface.\n\nHere is how you can use the public API of the `prg2p` package in your code:\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/mdm-code/prg2p\"\n)\n\nfunc main() {\n\tr := prg2p.Rules()\n\tg2p, err := prg2p.Load(r)\n\tif err != nil {\n\t\tfmt.Println(err)\n\t\treturn\n\t}\n\n\t// Iterate over words to get their phonemic transcripts\n\tvar trans []string\n\tfor _, w := range []string{\"ala\", \"ma\", \"kota\"} {\n\t\tt, err := g2p.Transcribe(w, false)\n\t\tif err != nil {\n\t\t\tfmt.Println(err)\n\t\t\tcontinue\n\t\t}\n\t\ttrans = append(trans, t...)\n\t}\n\tfor _, t := range trans {\n\t\tfmt.Println(t)\n\t}\n}\n```\n\n\n## Development\n\nAll necessary development tools are in the `Makefile`. Calling `make test`\nconsecutively invokes `go fmt`, `go vet`, `golint` and `go test`. CI/CD is\nhandled by Github workflows. Remember to install `golint` before testing and\nbuilding:\n\n```sh\ngo install golang.org/x/lint/golint@latest\n```\n\nHappy coding!\n\n\n## License\n\nCopyright (c) 2023 Michał Adamczyk.\n\nThis project is licensed under the [MIT license](https://opensource.org/licenses/MIT).\nSee [LICENSE](LICENSE) for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdm-code%2Fprg2p","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmdm-code%2Fprg2p","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdm-code%2Fprg2p/lists"}