# [PowerShell Core], 134 bytes

<!-- language-all: lang-powershell -->

    Function F($o){$p=($o-creplace"[^A-Z]",'').Length/($o-replace"[^a-z]",'').Length;$l=1-$p;(.({"$p upp"},{"$l low"})[$p-lt$l])+"ercase"}

[Try it online!][TIO-jgxwnyz2]

[PowerShell Core]: https://github.com/PowerShell/PowerShell
[TIO-jgxwnyz2]: https://tio.run/##fVJdT8IwFH2GX3HTVNnCikCiURYSUTN8ADSILy7TzHH5SJq1bl00zP12bBli0EiTpu255557elsp3jFJF8g5i0SCay@LI7UUMUwwVdW8WqEqkxyhC5eW7VZ253oXHIvcJ3fzcThcjub32dNqgA9wDNfiBqEvBjPikGbjtA2ZlJhEYYrEdn/l34j3UV/0JjBe9m@V3ikYoDfpi1DBozSRUuT8kIgnBFyFYz1XJfsMuLnVP@y7cmhq65DqTJRjw9vX2zE/4QhyqFb0WXdL94i@@M3ANQB@SIwUTkuwFWjMwAmmGTdMDzY5G67xgLFB/WGoFkGnMxZZPLX8qcheOQbWNo0lKHkYIfGfm@yiEdSJU6vZTtsutdNsNlt@mIJ/6CFb9diqTHD3fBCab8sXQPNSoiDu1u7uFgzfvmV1rKgWPx/Fs6iwcyq7emXRT80eewo2BhsDjOdqcWLie5b2wi7l3Raj0rUaVk6oNG9DCkdvuWk/KWyfSsYV5YFdJ9vXKNbmm66/AA "PowerShell Core – Try It Online"