{"id":43153120,"url":"https://github.com/f1monkey/ngrams","last_synced_at":"2026-02-01T00:28:45.996Z","repository":{"id":62973698,"uuid":"563939880","full_name":"f1monkey/ngrams","owner":"f1monkey","description":"Ngram generation library","archived":false,"fork":false,"pushed_at":"2023-03-04T00:28:21.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-15T05:38:29.778Z","etag":null,"topics":["go","golang","ngram","ngrams","trigram","trigrams"],"latest_commit_sha":null,"homepage":"","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/f1monkey.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}},"created_at":"2022-11-09T16:48:55.000Z","updated_at":"2022-11-27T14:35:40.000Z","dependencies_parsed_at":"2023-07-29T22:50:34.710Z","dependency_job_id":null,"html_url":"https://github.com/f1monkey/ngrams","commit_stats":null,"previous_names":["cyradin/ngrams"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/f1monkey/ngrams","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f1monkey%2Fngrams","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f1monkey%2Fngrams/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f1monkey%2Fngrams/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f1monkey%2Fngrams/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/f1monkey","download_url":"https://codeload.github.com/f1monkey/ngrams/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f1monkey%2Fngrams/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28961849,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T23:03:11.038Z","status":"ssl_error","status_checked_at":"2026-01-31T22:56:44.691Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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","golang","ngram","ngrams","trigram","trigrams"],"created_at":"2026-02-01T00:28:45.935Z","updated_at":"2026-02-01T00:28:45.984Z","avatar_url":"https://github.com/f1monkey.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ngrams\n\nN-grams generation library written in go\n\n## Install\n\n```bash\n$ go get -v github.com/f1monkey/ngrams\n```\n\n## Usage\n\n```go\n    result := ngrams.From(\"orange\", 3)\n    fmt.Println(result) // [ora, ran, ang, nge]\n\n    result := ngrams.FromRange(\"word\", 2, 3)\n    fmt.Println(result) // [wo, or, rd, wor, ord]\n```\n\n\n## Benchmark\n\n```\ngoos: linux\ngoarch: amd64\npkg: github.com/f1monkey/ngrams\ncpu: Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz\nBenchmark_MakeRange-12        \t  493305\t      2446 ns/op\t    1440 B/op\t      31 allocs/op\nBenchmark_From_6_3-12         \t 2563634\t       456.1 ns/op\t     224 B/op\t       6 allocs/op\nBenchmark_FromRunes_6_3-12    \t 3208182\t       413.3 ns/op\t     224 B/op\t       6 allocs/op\nPASS\ncoverage: 80.9% of statements\nok  \tgithub.com/f1monkey/ngrams\t4.593s\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ff1monkey%2Fngrams","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ff1monkey%2Fngrams","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ff1monkey%2Fngrams/lists"}