> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo/curator/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo/curator/_mcp/server.

# nemo_curator.stages.text.modifiers.string.quotation_remover

## Module Contents

### Classes

| Name                                                                                                | Description                                               |
| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------- |
| [`QuotationRemover`](#nemo_curator-stages-text-modifiers-string-quotation_remover-QuotationRemover) | Removes quotations from a document following a few rules: |

### API

```python
class nemo_curator.stages.text.modifiers.string.quotation_remover.QuotationRemover()
```

**Bases:** [DocumentModifier](/nemo-curator/nemo_curator/stages/text/modifiers/doc_modifier#nemo_curator-stages-text-modifiers-doc_modifier-DocumentModifier)

Removes quotations from a document following a few rules:

* If the document is less than 2 characters, it is returned unchanged.
* If the document starts and ends with a quotation mark and there are
  no newlines in the document, the quotation marks are removed.
* If the document starts and ends with a quotation mark and there are
  newlines in the document, the quotation marks are removed only if
  the first line does not end with a quotation mark.

```python
nemo_curator.stages.text.modifiers.string.quotation_remover.QuotationRemover.modify_document(
    text: str
) -> str
```