<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [client](./client.md) &gt; [HytopiaUI](./client.hytopiaui.md) &gt; [hasProfanity](./client.hytopiaui.hasprofanity.md)

## HytopiaUI.hasProfanity() method

Checks if text contains inappropriate language. Useful for validating input before sending to the server.

**Signature:**

```typescript
hasProfanity(text: string): boolean;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

text


</td><td>

string


</td><td>

Text to check


</td></tr>
</tbody></table>

**Returns:**

boolean

`true` if profanity is detected, `false` otherwise

