# Quickstart ## Installation ```bash pip install diversify-text ``` ## Usage ```{include} ../README.md :start-after: :end-before: ``` ## Semantic filter Enable the semantic filter to score each paraphrase with the [Mutual Implication Score](https://huggingface.co/s-nlp/Mutual_Implication_Score) model and automatically select the best candidate above a minimum score. Candidates are compared per style, so the filter improves semantic fidelity without reducing stylistic diversity. Note the generation cost: up to styles × `repeats` × candidate rounds model calls: ```python results = diversify( "The experiment was conducted in a controlled lab setting.", semantic_filter=True, ) ``` ```python [{ "original": "The experiment was conducted in a controlled lab setting.", "paraphrases": [ {"style": "informal", "text": "..."}, {"style": "formal", "text": "..."}, {"style": "question", "text": "..."}, {"style": "question_answer_forum", "text": "..."}, {"style": "discussion_forum", "text": "..."}, ] }] ``` ```{include} ../README.md :start-after: :end-before: ```