@ VisibleForTesting static Dir estimateDirection ( String str , boolean isHtml ) { return BidiUtils . estimateDirection ( str , isHtml ) ; }
Estimates the directionality of a string using the best known general - purpose method i . e . using relative word counts . Dir . NEUTRAL return value indicates completely neutral input .