# [PowerShell Core], <s>134</s>128 bytes

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

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

[Try it online!][TIO-jgz6i859]

[PowerShell Core]: https://github.com/PowerShell/PowerShell
[TIO-jgz6i859]: https://tio.run/##fVJhT8IwEP0Mv@LSVN3CikCiURcSUTL8gGIQv7hMM8cBS5q1bl00zP12bBli0EiTJu27d6/v7irFO6bZAjlnkUhx5eVJpGKRwAQzVS/qNapyyRG6cGnZbm17b3TBsch9OpqPw9v4bn6fPy2H@ACHcC36CAMxnBGHtJonHcilxDQKMyS2@yu/L97vBqI3gXE8uFH6pGCI3mQgQgWP0kQqkbN9Ip4QcBWO9V5W7FPgpqp/2KNqaWp7n@pMVGvN29XbMj/hAAqo1/Rdd0v3iL74rcA1AH5IjBROK7AdaMzAKWY5XzPXGZ/gGdSYwMTA/m2oFsHFxVjkydTypyJ/5RhYmzyWouRhhMR/brHzZtAgztGR7XTsSjzLZ7P4w4j/oYds2WPLKsHdMUJosXm@BFpUEiVxN363ZTB8@5bVsbJerryYK0zBK6jsWvSFRT@v9dhTsLbWHGIyV4tjE98xsxN2Ke@2GZWu1bQKQqUZCykdfeSm86S0fSoZV5QHdoNsBlGuzA9dfQE "PowerShell Core – Try It Online"

Thanks, [Veskah][1], for saving six bytes by converting the function to a filter!


  [1]: https://codegolf.stackexchange.com/users/78849/veskah