if someone changed jobs every X interval, youd consider them a job hopper. pick the largest range.
Anything under 3 years is job hopping to me. If somebody leaves after 2 years then they were ramping up for 6 months in the beginning and leetcoding for 6 months at the end, so at best they provided some questionable value for 12 months which obviously wasn’t rewarded or appreciated, which means that likely wasn’t impactful. That’s my bias.