{"library":"pyphen","code":"import pyphen\n\n# Instantiate Pyphen for a specific language (e.g., French)\ndic = pyphen.Pyphen(lang='fr_FR')\n\n# Check if a language is available\nprint(f\"Is 'fr_FR' available? {'fr_FR' in pyphen.LANGUAGES}\")\n\n# Hyphenate a word, inserting hyphens\nword = 'fromage'\nhyphenated_word = dic.inserted(word)\nprint(f\"'{word}' hyphenated: {hyphenated_word}\") # Expected: 'fro-mage'\n\n# Wrap a word to a certain width\nlong_word = 'autobandventieldopje'\nwrapped_word = dic.wrap(long_word, 11)\nprint(f\"'{long_word}' wrapped to 11 chars: {wrapped_word}\") # Expected: ('autoband-', 'ventieldopje')\n\n# Iterate over all possible hyphenation points\nprint(f\"Hyphenation iterations for 'Amsterdam':\")\nfor pair in dic.iterate('Amsterdam'):\n    print(pair)","lang":"python","description":"Initialize a `Pyphen` object for a desired language. The quickstart demonstrates basic hyphenation using `inserted()`, word wrapping with `wrap()`, and iterating through all possible hyphenation points with `iterate()`. It also shows how to check for available languages using `pyphen.LANGUAGES`. Dictionaries are automatically loaded upon instantiation.","tag":null,"tag_description":null,"last_tested":"2026-04-24","results":[{"runtime":"python:3.10-alpine","exit_code":0},{"runtime":"python:3.10-slim","exit_code":0},{"runtime":"python:3.11-alpine","exit_code":0},{"runtime":"python:3.11-slim","exit_code":0},{"runtime":"python:3.12-alpine","exit_code":0},{"runtime":"python:3.12-slim","exit_code":0},{"runtime":"python:3.13-alpine","exit_code":0},{"runtime":"python:3.13-slim","exit_code":0},{"runtime":"python:3.9-alpine","exit_code":0},{"runtime":"python:3.9-slim","exit_code":0}]}