detect_direction
Determine text direction of a string as RTL, LTR, mixed, or neutral, and get the correct dir attribute value for labels, fields, or user content.
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. |