detect_direction
Analyze a string to determine if it's right-to-left, left-to-right, mixed, or neutral, returning the correct dir value for UI elements.
Instructions
Report whether a string is predominantly right-to-left, left-to-right, mixed or neutral, and what to set dir to. Use it when you need to decide the direction of a label, a database field or a block of user content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text to inspect. |