Zarf’s post on the topic a few years back is still good advice:
Basically, if you’re combining a lot of disparate things into one scenery object, the simplest, best solution is either “don’t; break them into separate scenery things” or “make the scenery a very generic, collective mass noun referring to all of them, instead”.
I get that’s not quite what you’re doing here, but the principle is the same. Any time you’re trying to work around or replace the parser machinery in Inform, as you’d need to in this case, you’re probably doing way too much work to accomplish something partial and underwhelming anyway. The easiest solution here then would be to rename the scenery thing to ‘the structure’ or ‘the building’; it’d be fine if both >examine barn and >examine stable resulted in The structure looks warm and inviting., wouldn’t it?