{"id":19309778,"url":"https://github.com/mitica/root-name","last_synced_at":"2026-05-12T20:42:23.600Z","repository":{"id":65373228,"uuid":"124635512","full_name":"mitica/root-name","owner":"mitica","description":"Extracts root name of a name.","archived":false,"fork":false,"pushed_at":"2018-04-25T07:09:53.000Z","size":51,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-06T22:45:20.800Z","etag":null,"topics":["name","root","root-name","stemmer","stemming"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/mitica.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}},"created_at":"2018-03-10T08:08:10.000Z","updated_at":"2018-04-25T07:09:54.000Z","dependencies_parsed_at":"2023-01-20T02:04:59.886Z","dependency_job_id":null,"html_url":"https://github.com/mitica/root-name","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitica%2Froot-name","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitica%2Froot-name/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitica%2Froot-name/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitica%2Froot-name/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mitica","download_url":"https://codeload.github.com/mitica/root-name/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240410482,"owners_count":19796902,"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":["name","root","root-name","stemmer","stemming"],"created_at":"2024-11-10T00:20:43.054Z","updated_at":"2025-11-14T21:03:40.606Z","avatar_url":"https://github.com/mitica.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# root-name\n\nExtracts root name of a name.\n\nSupported languages: `ro`, `ru`.\n\n## Usage\n\n``` js\n\nimport rootName from 'root-name'\n\nconst lang = 'ru'\n\nrootName('Владимира Путина', lang) // Владимир Путин\nrootName('Санкт-Петербургской', lang) // Санкт-Петербург\n\nrootName('Federației Ruse', 'ro') // Federați Rus\nrootName('Federația Rusă', 'ro') // Federați Rus\nrootName('COMISIEI EUROPENe', 'ro') // COMISI EUROPE\n\n```\n\n## API\n\n### rootName(name: string, lang: string, options?: Options): string\n\n```ts\nexport enum RuleAccuracy {\n    LOW = 0,\n    NORMAL = 1,\n    HIGH = 2\n}\n\nexport type Options = {\n    accuracy?: RuleAccuracy\n    minWordLength?: number\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitica%2Froot-name","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmitica%2Froot-name","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitica%2Froot-name/lists"}