{"id":44689720,"url":"https://github.com/AKuznetsov/russianmorphology","last_synced_at":"2026-03-13T06:00:58.659Z","repository":{"id":14709739,"uuid":"17430117","full_name":"AKuznetsov/russianmorphology","owner":"AKuznetsov","description":"Russian Morphology for Lucene","archived":false,"fork":false,"pushed_at":"2022-09-28T12:03:55.000Z","size":10369,"stargazers_count":88,"open_issues_count":8,"forks_count":46,"subscribers_count":14,"default_branch":"master","last_synced_at":"2023-08-17T07:06:00.618Z","etag":null,"topics":["java","lucene","morphology","russian-morphology","solr"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"geerlingguy/ansible-role-varnish","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AKuznetsov.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":"2014-03-05T06:23:41.000Z","updated_at":"2023-05-24T08:26:16.000Z","dependencies_parsed_at":"2023-01-11T20:22:24.845Z","dependency_job_id":null,"html_url":"https://github.com/AKuznetsov/russianmorphology","commit_stats":null,"previous_names":[],"tags_count":1,"template":null,"template_full_name":null,"purl":"pkg:github/AKuznetsov/russianmorphology","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AKuznetsov%2Frussianmorphology","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AKuznetsov%2Frussianmorphology/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AKuznetsov%2Frussianmorphology/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AKuznetsov%2Frussianmorphology/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AKuznetsov","download_url":"https://codeload.github.com/AKuznetsov/russianmorphology/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AKuznetsov%2Frussianmorphology/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30459760,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-13T03:55:51.346Z","status":"ssl_error","status_checked_at":"2026-03-13T03:55:33.055Z","response_time":60,"last_error":"SSL_read: 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":["java","lucene","morphology","russian-morphology","solr"],"created_at":"2026-02-15T07:00:30.141Z","updated_at":"2026-03-13T06:00:58.652Z","avatar_url":"https://github.com/AKuznetsov.png","language":"Java","readme":"# Russian Morphology for Apache Lucene\n\nRussian and English morphology for Java and [Apache Lucene](http://lucene.apache.org) 9.3 framework based on open source dictionary from site [АОТ](http://aot.ru). It uses dictionary base morphology with some heuristics for unknown words. It supports a homonym for example for a Russian word \"вина\" it gives two variants \"вино\" and \"вина\".\n\n\n### How to use\n\nBuild project, by running `mvn clean package`, this will provide you the latest versions of the artifacts - 1.5, add it to your classpath. You could select which version to use - Russian or English.\n\nNow you can create a Lucene Analyzer:\n\n      RussianAnalayzer russian = new RussianAnalayzer();\n      EnglishAnalayzer english = new EnglishAnalayzer();\n\nYou can write you own analyzer using filter that convert word in it's right forms. \n\n      LuceneMorphology luceneMorph = new EnglishLuceneMorphology();\n      TokenStream tokenStream = new MorphlogyFilter(result, luceneMorph);\n\nBecause usually LuceneMorphology contains a lot data needing for it functionality, it is better didn't create this object for each MorphologyFilter.\n\nAlso if you need get a list of base forms of word, you can use following example \n\n\n     LuceneMorphology luceneMorph = new EnglishLuceneMorphology();\n     List\u003cString\u003e wordBaseForms = luceneMorph.getMorphInfo(word);\n\n### Solr\n\nYou can use the LuceneMorphology as morphology filter in a Solr _schema.xml_ using a **MorphologyFilterFactory:**\n\n```xml\n\u003cfieldType name=\"content\" class=\"solr.TextField\" positionIncrementGap=\"100\"\u003e\n      \u003canalyzer\u003e\n        \u003ctokenizer class=\"solr.StandardTokenizerFactory\"/\u003e\n\t\t\u003cfilter class=\"org.apache.lucene.analysis.morphology.MorphologyFilterFactory\" language=\"Russian\"/\u003e\n\t\t\u003cfilter class=\"org.apache.lucene.analysis.morphology.MorphologyFilterFactory\" language=\"English\"/\u003e\n      \u003c/analyzer\u003e\n\u003c/fieldType\u003e\n```\n\nJust add _morphology-1.5.jar_ in your Solr lib-directories\n\n### Restrictions\n  \n  * It works only with UTF-8.\n  * It assume what letters е and ё are the same.\n  * Word forms with prefixes like \"наибольший\" treated as separate word. \n\n### License\n\nApache License, Version 2.0\n","funding_links":[],"categories":["人工智能"],"sub_categories":["自然语言处理"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAKuznetsov%2Frussianmorphology","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAKuznetsov%2Frussianmorphology","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAKuznetsov%2Frussianmorphology/lists"}