I like the premise (of anything that allows you to refine what you're seeing while foraging). I'd like to suggest that maybe 'except quarried' or '-quarried' (where that could be made really any 1 thing of type foraged in the room, like, say, sandstone, or crystal or shard) would be more intuitive as syntax for it than 'forage for not this'.
It already sort of works like that.
"forage rock for gem" will discard anything you find that isn't a gem, which means no quarries (as far as I've seen so far).
The only issues with that are some gems don't have the keyword gem so you won't find them. There's also some other cool and valuable things you won't find if you limit your search. With keywords being inconsistent it's not worth it to me to use the specific when I forage.
And I LOVE foraging. It's like Armageddon's minigame.
That's only useful to greb specific things, or specific types of things. Example:
forage rock for chunky
forage rock for hand
forage rock for piece
forage rock for small
With each thing, you will NOT get anything other than something with that specific word in the sdesc or keyword list. So if you want to find any gemstone OR any jasper OR any sandstone OR any obsidian, but you simply do not want anything quarried, you're out of luck. You have to pick which ONE you want, and the code will either give it to you or give you nothing.
What nauta is looking for, is an exclusion option. I agree 100% - I'd love to have an exclusion option for ALL foraging lists. That way you can...
forage rock -jasper.-sandstone.-basalt
forage food -tuber
forage artifacts -shard
forage wood -kindling.-pech