{"id":13483543,"url":"https://github.com/cadmiumcr/cadmium","last_synced_at":"2025-05-10T21:05:30.151Z","repository":{"id":91428119,"uuid":"124798517","full_name":"cadmiumcr/cadmium","owner":"cadmiumcr","description":"Natural Language Processing (NLP) library for Crystal","archived":false,"fork":false,"pushed_at":"2022-01-24T21:37:48.000Z","size":9691,"stargazers_count":205,"open_issues_count":9,"forks_count":14,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-04-25T21:16:28.740Z","etag":null,"topics":["crystal","crystal-lang","crystal-language","inflector","nlp","phonetics","readability","sentiment-analysis","shards","stemmer","string-distance","tf-idf","transliterator","tries","wordnet"],"latest_commit_sha":null,"homepage":"https://cadmiumcr.com","language":"Crystal","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/cadmiumcr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"github":"watzon","patreon":"watzon","open_collective":"cadmium","ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2018-03-11T20:54:09.000Z","updated_at":"2025-04-13T02:05:14.000Z","dependencies_parsed_at":"2023-09-23T14:34:37.577Z","dependency_job_id":null,"html_url":"https://github.com/cadmiumcr/cadmium","commit_stats":{"total_commits":162,"total_committers":5,"mean_commits":32.4,"dds":"0.49382716049382713","last_synced_commit":"aef050e08faf07f2d5933cdd9c9356dad7ec413a"},"previous_names":["watzon/cadmium"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cadmiumcr%2Fcadmium","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cadmiumcr%2Fcadmium/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cadmiumcr%2Fcadmium/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cadmiumcr%2Fcadmium/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cadmiumcr","download_url":"https://codeload.github.com/cadmiumcr/cadmium/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251976211,"owners_count":21674148,"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":["crystal","crystal-lang","crystal-language","inflector","nlp","phonetics","readability","sentiment-analysis","shards","stemmer","string-distance","tf-idf","transliterator","tries","wordnet"],"created_at":"2024-07-31T17:01:12.583Z","updated_at":"2025-05-10T21:05:29.934Z","avatar_url":"https://github.com/cadmiumcr.png","language":"Crystal","funding_links":["https://github.com/sponsors/watzon","https://patreon.com/watzon","https://opencollective.com/cadmium"],"categories":["Machine Learning"],"sub_categories":[],"readme":"![Logo](img/cadmium.png)\n\n**Cadmium** is a *Natural Language Processing* (NLP) library for [Crystal](https://crystal-lang.org/).\n\nFor full API documentation check out [the docs](https://cadmiumcr.github.io/cadmium/).\n\nFor more complete and up to date information about specific parts of Cadmium, check out each relevant shard repository.\n\n\n\n| Shard name                                                   | Description                                                  |\n| ------------------------------------------------------------ | ------------------------------------------------------------ |\n| [cadmium_tokenizer](https://github.com/cadmiumcr/tokenizer)  | Contains several types of string tokenizers                  |\n| [cadmium_stemmer](https://github.com/cadmiumcr/stemmer)      | Contains a Porter stemmer, useful to get the stems of english words |\n| [cadmium_ngrams](https://github.com/cadmiumcr/ngrams)        | Contains methods to obtain unigram, bigrams, trigrams or ngrams from strings |\n| [cadmium_classifier](https://github.com/cadmiumcr/classifier) | Contains two probabilistic classifiers used in NLP operations like language detection or POS tagging for example |\n| [cadmium_readability](https://github.com/cadmiumcr/readability) | Analyzes blocks of text and determine, using various algorithms, the readability of the text. |\n| [cadmium_tfidf](https://github.com/cadmiumcr/tfidf)          | Calculates the Term Frequency–Inverse Document Frequency of a corpus |\n| [cadmium_glove](https://github.com/cadmiumcr/glove)          | Pure Crystal implementation of Global Vectors for Word Representations |\n| [cadmium_pos_tagger](https://github.com/cadmiumcr/pos_tagger) | Tags each token of a text with its Part Of Speech category   |\n| [cadmium_lemmatizer](https://github.com/cadmiumcr/lemmatizer) | Returns the lemma of each given string token                 |\n| [cadmium_summarizer](https://github.com/cadmiumcr/summarizer) | Extracts the most meaningful sentences of a text to create a summary |\n| [cadmium_sentiment](https://github.com/cadmiumcr/sentiment)  | Evaluates the sentiment of a text                            |\n| [cadmium_distance](https://github.com/cadmiumcr/distance)    | Provides two string distance algorithms                      |\n| [cadmium_transliterator](https://github.com/cadmiumcr/transliterator) | Provides the ability to transliterate UTF-8 strings into pure ASCII so that they can be safely displayed in URL slugs or file names. |\n| [cadmium_phonetics](https://github.com/cadmiumcr/phonetics)  | Allows to match a string with its sound representation       |\n| [cadmium_inflector](https://github.com/cadmiumcr/inflector)  | Allows to inflect english words (nouns, verbs and numbers)   |\n| [cadmium_graph](https://github.com/cadmiumcr/graph)          | EdgeWeightedDigraph represents a digraph, you can add an edge, get the number vertexes, edges, get all edges and use toString to print the Digraph. |\n| [cadmium_trie](https://github.com/cadmiumcr/trie)            | A [trie](https://en.wikipedia.org/wiki/Trie) is a data structure for efficiently storing and retrieving strings with identical prefixes, like \"**mee**t\" and \"**mee**k\". |\n| [cadmium_wordnet](https://github.com/cadmiumcr/wordnet)      | Pure crystal implementation of Stanford NLPs WordNet         |\n| [cadmium_util](https://github.com/cadmiumcr/utilities)       | A collection of useful utilities used internally in Cadmium. |\n| [cadmium_language_detector](https://github.com/cadmiumcr/language_detector) | Returns the most probable language code of the analysed text. |\n\n\n\n\n## Installation\n\nYour project *should* only include the Cadmium shard(s) you need.\n\nHowever, in case you want to test out **all of Cadmium** in a simple way, you can install all modules of the project in a few lines.\n\nAdd this to your application's `shard.yml`:\n\n```yaml\ndependencies:\n  cadmium:\n    github: cadmiumcr/cadmium\n    branch: master\n```\n\n## Contributing\n\n1. Fork it ( https://github.com/cadmiumcr/cadmium/fork )\n2. Create your feature branch (git checkout -b my-new-feature)\n3. Commit your changes (git commit -am 'Add some feature')\n4. Push to the branch (git push origin my-new-feature)\n5. Create a new Pull Request\n\n## Contributors\n\nThis project exists thanks to all the people who contribute. \u003ca href=\"https://github.com/cadmiumcr/Cadmium/graphs/contributors\"\u003e\u003cimg src=\"https://opencollective.com/Cadmium/contributors.svg?width=890\u0026button=false\" /\u003e\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcadmiumcr%2Fcadmium","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcadmiumcr%2Fcadmium","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcadmiumcr%2Fcadmium/lists"}