{"id":21409,"library":"gruut-lang-fr","title":"gruut-lang-fr","description":"French language data files for the gruut tokenizer/phonemizer library. Provides grapheme-to-phoneme (g2p) models, lexicons, and language-specific rules for French text normalization and pronunciation. Current version: 2.0.2, released as part of gruut v2.0.0 refactoring. Gruut core releases frequently; language packages versioned independently.","status":"active","version":"2.0.2","language":"python","source_language":"en","source_url":"https://github.com/rhasspy/gruut","tags":["gruut","phonemizer","g2p","french","nlp","text-to-speech"],"install":[{"cmd":"pip install gruut-lang-fr","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Core library required for tokenization and phonemization","package":"gruut","optional":false}],"imports":[{"wrong":"import gruut","symbol":"Path","correct":"from gruut_lang_fr import Path"},{"wrong":"import gruut","symbol":"get_lang_dir","correct":"from gruut_lang_fr import get_lang_dir"},{"wrong":"import gruut","symbol":"files","correct":"from gruut_lang_fr import files"}],"quickstart":{"code":"import gruut\n\n# Tokenize and phonemize French text\nsentences = gruut.sentences('Bonjour le monde', lang='fr')\nfor sentence in sentences:\n    for word in sentence:\n        if word.phonemes:\n            print(f\"{word.text} -> {''.join(word.phonemes)}\")","lang":"python","description":"Simple example using gruut with French language data."},"warnings":[{"fix":"Use gruut.sentences() instead of gruut.tokenize(). See quickstart example.","message":"Gruut v2.0.0 changed the API from gruut.tokenize to gruut.sentences. Old code using gruut.tokenize will break.","severity":"breaking","affected_versions":"<2.0.0"},{"fix":"Install the specific language package: pip install gruut-lang-fr","message":"The language data packages (gruut-lang-*) are separate from the core gruut package. Simply installing gruut does not include language data.","severity":"breaking","affected_versions":">=2.0.0"},{"fix":"Do not import gruut_lang_fr. Simply set lang='fr' in gruut functions.","message":"Language data is automatically loaded when using lang='fr'. Manually importing gruut_lang_fr is not supported and may cause issues.","severity":"gotcha","affected_versions":">=2.0.0"}],"env_vars":null,"search_vec":"'2.0.2':35 'core':44 'current':33 'data':7 'file':8 'fr':4 'french':5,28,54 'frequent':46 'g2p':19,53 'graphem':16 'grapheme-to-phonem':15 'gruut':2,11,40,43,51 'gruut-lang-fr':1 'independ':50 'lang':3 'languag':6,24,47 'language-specif':23 'lexicon':21 'librari':13 'model':20 'nlp':55 'normal':30 'packag':48 'part':38 'phonem':18,52 'pronunci':32 'provid':14 'refactor':42 'releas':36,45 'rule':26 'specif':25 'speech':59 'text':29,57 'text-to-speech':56 'tokenizer/phonemizer':12 'v2.0.0':41 'version':34,49","created_at":"2026-04-27T16:59:45.557104+00:00","updated_at":"2026-04-27T16:59:45.557104+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"2.0.2","cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/rhasspy/gruut","docs":null,"changelog":null,"pypi":"https://pypi.org/project/gruut-lang-fr/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["serialization","ai-ml","data"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-06-30","last_verified":"2026-06-30","next_check":"2026-07-30","install_tag":null}}