{"id":37147250,"url":"https://github.com/rafatbiin/gongram","last_synced_at":"2026-01-14T17:19:12.572Z","repository":{"id":57557421,"uuid":"279331745","full_name":"rafatbiin/gongram","owner":"rafatbiin","description":"Ngram generator in Go that just works","archived":false,"fork":false,"pushed_at":"2020-08-04T12:31:32.000Z","size":10,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-07-26T15:13:49.429Z","etag":null,"topics":["go","go-package","golang","ngram","ngrams","nlp"],"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/rafatbiin.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}},"created_at":"2020-07-13T14:51:24.000Z","updated_at":"2020-08-15T18:08:45.000Z","dependencies_parsed_at":"2022-09-15T19:30:37.740Z","dependency_job_id":null,"html_url":"https://github.com/rafatbiin/gongram","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/rafatbiin/gongram","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafatbiin%2Fgongram","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafatbiin%2Fgongram/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafatbiin%2Fgongram/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafatbiin%2Fgongram/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rafatbiin","download_url":"https://codeload.github.com/rafatbiin/gongram/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafatbiin%2Fgongram/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28427245,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T16:38:47.836Z","status":"ssl_error","status_checked_at":"2026-01-14T16:34:59.695Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["go","go-package","golang","ngram","ngrams","nlp"],"created_at":"2026-01-14T17:19:11.924Z","updated_at":"2026-01-14T17:19:12.562Z","avatar_url":"https://github.com/rafatbiin.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gongram ![CI](https://github.com/rafatbiin/gongram/workflows/CI/badge.svg)\nNgram generator in Go that just works.\n\n## Overview\ngongram provides a Go package which generates Ngrams of given\ngram size from given text. It has support for unicode language as well. \nIt'll remove all the punctuations but keep the cases of the letters untouched.\n\nIn *addition* this library provides a [CLI](#cli) to perform the above operation via console.\n\n## Installing\n\nTo start using gongram, install Go and run `go get`:\n\n```sh\n$ go get github.com/rafatbiin/gongram/...\n```\n\nThis will retrieve the library and install the `gongram` command line utility into\nyour `$GOBIN` path.\n\n## Generating Ngram\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/rafatbiin/gongram\"\n)\n\nfunc main()  {\n\ttext := \"It’s not about ideas. It’s about making ideas happen!\"\n\tngrams, err:= gongram.Generate(text, 4) // [\"Its not about ideas\",\"not about ideas Its\",\"about ideas Its about\",\"ideas Its about making\",\"Its about making ideas\",\"about making ideas happen\"]\n\tif err != nil {\n\t\t// Handle error\n\t}\n\t...\n}\n```\n\n## CLI\n```sh\n$ gongram ngram -g 4 It’s not about ideas. It’s about making ideas happen!\n[\"Its not about ideas\",\"not about ideas Its\",\"about ideas Its about\",\"ideas Its about making\",\"Its about making ideas\",\"about making ideas happen\"]\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafatbiin%2Fgongram","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frafatbiin%2Fgongram","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafatbiin%2Fgongram/lists"}