{"id":26042684,"url":"https://github.com/nstr/go-nlang","last_synced_at":"2025-04-10T05:40:34.450Z","repository":{"id":136309987,"uuid":"79671841","full_name":"nstr/go-nlang","owner":"nstr","description":"Natural language processing for Go","archived":false,"fork":false,"pushed_at":"2017-08-16T21:04:12.000Z","size":4,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T06:54:36.891Z","etag":null,"topics":["go","golang","natural-language-processing"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nstr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2017-01-21T20:46:27.000Z","updated_at":"2025-03-15T23:20:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"b78ced9e-8c3c-4a2b-97ae-88c99c8e88f4","html_url":"https://github.com/nstr/go-nlang","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nstr%2Fgo-nlang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nstr%2Fgo-nlang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nstr%2Fgo-nlang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nstr%2Fgo-nlang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nstr","download_url":"https://codeload.github.com/nstr/go-nlang/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248166119,"owners_count":21058474,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["go","golang","natural-language-processing"],"created_at":"2025-03-07T16:44:25.202Z","updated_at":"2025-04-10T05:40:34.442Z","avatar_url":"https://github.com/nstr.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-nlang\nNatural language processing for Go\n\n* [Distance](#distance)\n* [Phonetics](#phonetics)\n* [To Do](#to-do)\n\n\n## Distance\n\n```go\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/njnest/go-nlang/distance\"\n)\n\nfunc main() {\n  distanceText1 := \"hi\"\n\tdistanceText2 := \"hello\"\n\tdistanceText3 := \"hello, my darling\"\n\tdistanceTextResult := \"comparison of '%s' \u0026 '%s'. Result is %f \\n\"\n\n\tfmt.Printf(distanceTextResult, distanceText1, distanceText2, distance.Compare(distanceText1, distanceText2))\n  //comparison of 'hi' \u0026 'hello'. Result is 0.000000\n\tfmt.Printf(distanceTextResult, distanceText2, distanceText3, distance.Compare(distanceText2, distanceText3))\n  //comparison of 'hello' \u0026 'hello, my darling'. Result is 0.444444\n\tfmt.Printf(distanceTextResult, distanceText3, distanceText3, distance.Compare(distanceText3, distanceText3))\n  //comparison of 'hello, my darling' \u0026 'hello, my darling'. Result is 1.000000\n}\n```\n\n## Phonetics\n\n```go\nimport (\n\t\"fmt\"\n\n\t\"github.com/njnest/go-nlang/phonetics\"\n)\n\nfunc main() {\n  ph, res := phonetics.Compare(\"New Zeland it is part of Feladelfia\", \"New Zeland it is part of Pheladelphia\")\n  fmt.Println(\"Sentences sound the same:\", res)\n  fmt.Println(\"Sentences contain the same sounds:\", ph.SentencesСontainTheSameWords())\n}\n```\n\n\n## To Do\n1. tokenizers\n2. frequency\n3. tf-idf\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnstr%2Fgo-nlang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnstr%2Fgo-nlang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnstr%2Fgo-nlang/lists"}