> 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.c4

## Module Contents

### Classes

| Name                                                                                                   | Description                                                           |
| ------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------- |
| [`BoilerPlateStringModifier`](#nemo_curator-stages-text-modifiers-string-c4-BoilerPlateStringModifier) | If the sentence contains any of the boilerplate strings then discard. |

### API

```python
class nemo_curator.stages.text.modifiers.string.c4.BoilerPlateStringModifier(
    remove_if_at_top_or_bottom: bool = True
)
```

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

If the sentence contains any of the boilerplate strings then discard.
This includes things like "terms of use", "privacy policy", etc.
Source: Adapted significantly from Google C4 processing.

**`_boilerplate_paragraph_indices`** `= []`

---

**`_name`** `= 'boilerplate_string_ratio'`

---

```python
nemo_curator.stages.text.modifiers.string.c4.BoilerPlateStringModifier.modify_document(
    text: str
) -> str
```