Why not just use bangs to change from the more common to less common region on a search by search basis?
Or just use the programming (or other) lens for documentation
Or just use the programming (or other) lens for documentation
Google mostly gets this right, at least in my experience, although it's become a lot worse recently. Having to configure it with bangs might work, I'll have another go at that in the future.
Still not an ideal solution for me, because it requires me to plan ahead when typing the query (or rewriting it later, which is slower).