{"id":20315811,"url":"https://github.com/achuttarsing/inflecteur","last_synced_at":"2025-04-11T17:33:33.259Z","repository":{"id":62570957,"uuid":"323741385","full_name":"Achuttarsing/inflecteur","owner":"Achuttarsing","description":"python inflector 🌀 for French language : control gender, tense and number ","archived":false,"fork":false,"pushed_at":"2025-01-15T22:50:39.000Z","size":5252,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T13:39:10.820Z","etag":null,"topics":["data-augmentation","french-nlp","inflection","inflector","nlp","python"],"latest_commit_sha":null,"homepage":"","language":"Python","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/Achuttarsing.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":"2020-12-22T21:56:22.000Z","updated_at":"2025-02-08T12:32:30.000Z","dependencies_parsed_at":"2022-11-03T17:01:16.224Z","dependency_job_id":null,"html_url":"https://github.com/Achuttarsing/inflecteur","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/Achuttarsing%2Finflecteur","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Achuttarsing%2Finflecteur/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Achuttarsing%2Finflecteur/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Achuttarsing%2Finflecteur/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Achuttarsing","download_url":"https://codeload.github.com/Achuttarsing/inflecteur/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248450127,"owners_count":21105625,"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":["data-augmentation","french-nlp","inflection","inflector","nlp","python"],"created_at":"2024-11-14T18:22:03.808Z","updated_at":"2025-04-11T17:33:33.231Z","avatar_url":"https://github.com/Achuttarsing.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# inflecteur\n[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Achuttarsing/inflecteur/blob/main/inflecteur_demo.ipynb)\n\ninflecteur is a python inflector for french language based on the [DELA dictionary](http://infolingu.univ-mlv.fr)\n\n## Installation :\n```console\n$ pip install -U transformers \n$ pip install -U inflecteur\n```\n## How to inflect ?\n```python\nIn [1]: from inflecteur import inflecteur\nIn [2]: inflecteur = inflecteur()\nIn [3]: inflecteur.load_dict()\n```\n### Control tense :\n```python\nIn [4]: inflecteur.inflect_sentence(\"Elle boit un café et mange un croissant.\", tense='Futur')\n'Elle boira un café et mangera un croissant .'\n\nIn [5]: inflecteur.inflect_sentence(\"Elle boit un café et mange un croissant.\", tense='Passé simple')\n'Elle but un café et mangea un croissant .'\n```\n\n### Control gender :\n```python\nIn [6]: inflecteur.inflect_sentence(\"Elle boit un café et mange un croissant.\", gender='m')\n'Il boit un café et mange un croissant .'\n```\n\n### Control number :\n```python\nIn [7]: inflecteur.inflect_sentence(\"Elle boit un café et mange un croissant.\", number='p')\n'Elles boivent des cafés et mangent des croissants .'\n```\n\n## Get word forms :\n```python\nIn [8]: inflecteur.get_word_form('pris')\n```\n|    | lemma   | gram     | forme   | gender   | number   | tense         | person   |\n|---:|:--------|:---------|:--------|:---------|:---------|:--------------|:---------|\n|  0 | prendre | Verbe    | Kms     | M        | singular | Passé composé |          |\n|  1 | prendre | Verbe    | Kmp     | M        | plural   | Passé composé |          |\n|  2 | prendre | Verbe    | J1s     |          | singular | Passé simple  | Je       |\n|  3 | prendre | Verbe    | J2s     |          | singular | Passé simple  | Tu       |\n|  4 | prendre | Verbe    | Kms     | M        | singular | Passé composé |          |\n|  5 | prendre | Verbe    | J1s     |          | singular | Passé simple  | Je       |\n|  6 | prendre | Verbe    | J2s     |          | singular | Passé simple  | Tu       |\n|  7 | pris    | Adjectif | ms      | M        | singular |               |          |\n|  8 | pris    | Adjectif | mp      | M        | plural   |               |          |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fachuttarsing%2Finflecteur","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fachuttarsing%2Finflecteur","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fachuttarsing%2Finflecteur/lists"}