{"id":22562231,"url":"https://github.com/preciz/fast_ngram","last_synced_at":"2025-04-10T10:33:04.638Z","repository":{"id":35151206,"uuid":"213419881","full_name":"preciz/fast_ngram","owner":"preciz","description":"A fast and unicode aware letter N-gram library written in Elixir","archived":false,"fork":false,"pushed_at":"2024-07-20T23:05:50.000Z","size":37,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T09:21:19.048Z","etag":null,"topics":["elixir","ngrams"],"latest_commit_sha":null,"homepage":"https://hex.pm/packages/fast_ngram","language":"Elixir","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/preciz.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":"2019-10-07T15:28:25.000Z","updated_at":"2024-10-12T01:08:35.000Z","dependencies_parsed_at":"2024-07-20T23:50:10.116Z","dependency_job_id":null,"html_url":"https://github.com/preciz/fast_ngram","commit_stats":{"total_commits":36,"total_committers":3,"mean_commits":12.0,"dds":0.5277777777777778,"last_synced_commit":"0ab8188a2003d7270dd5ba6e65a8d176ab5dc87e"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/preciz%2Ffast_ngram","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/preciz%2Ffast_ngram/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/preciz%2Ffast_ngram/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/preciz%2Ffast_ngram/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/preciz","download_url":"https://codeload.github.com/preciz/fast_ngram/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247785945,"owners_count":20995645,"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":["elixir","ngrams"],"created_at":"2024-12-07T22:12:09.195Z","updated_at":"2025-04-10T10:33:04.616Z","avatar_url":"https://github.com/preciz.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FastNgram\n\n[![test](https://github.com/preciz/fast_ngram/actions/workflows/test.yml/badge.svg)](https://github.com/preciz/fast_ngram/actions/workflows/test.yml)\n\nA fast and unicode aware letter \u0026 word N-gram library written in Elixir.\n\n## Installation\n\nThe package can be installed by adding `fast_ngram` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:fast_ngram, \"~\u003e 1.0\"}\n  ]\nend\n```\n\n## Usage\n```elixir\niex\u003e FastNgram.letter_ngrams(\"abcde\", 2)\n[\"ab\", \"bc\", \"cd\", \"de\"]\niex\u003e FastNgram.letter_ngrams(\"¥ · € · $\", 3)\n[\"¥ ·\", \" · \", \"· €\", \" € \", \"€ ·\", \" · \", \"· $\"]\niex\u003e FastNgram.letter_ngrams(\"\", 2)\n[]\niex\u003e FastNgram.word_ngrams(\"the bus came to a halt\", 2)\n[\"the bus\", \"bus came\", \"came to\", \"to a\", \"a halt\"]\niex\u003e FastNgram.word_ngrams(\"the bus came to a halt\", 3)\n[\"the bus came\", \"bus came to\", \"came to a\", \"to a halt\"]\niex\u003e FastNgram.word_ngrams(\"\", 2)\n[]\n```\n\n## Documentation\n\nDocumentation can be found at [https://hexdocs.pm/fast_ngram](https://hexdocs.pm/fast_ngram).\n\n## License\n\nFastNgram is [MIT licensed](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpreciz%2Ffast_ngram","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpreciz%2Ffast_ngram","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpreciz%2Ffast_ngram/lists"}