Section - Prominence
The stove is insignificant. A PS-socket is always insignificant. A PS-plug is always insignificant. The void is insignificant. [I seem to have done something odd that causes it to appear in the room description otherwise.] The steam is insignificant. The clock radio is insignificant. Lily is insignificant. [Say it ain't so!]
A thing has a number called prominence. The prominence of a thing is usually 1. Definition: A thing is prominent if its prominence is 2 or more. [Prominent, prominenter, prominentest.]
When play begins:
repeat with the item running through insignificant things:
now the prominence of the item is 0;
repeat with the item running through major things:
now the prominence of the item is 2.
To decide what number is the salience of (item - a thing):
if something that is near the item is prominenter than the item:
decide on the prominence of the prominentest thing that is near the item;
decide on the prominence of the item.
A thing can be queued for description.
After choosing notable locale objects:
now everything is not queued for description;
repeat with the item running through insignificant things:
now item is queued for description;
set the locale priority of the item to 0;
let the counter be a number;
now the counter is 1;
while a thing enclosed by the location is not queued for description:
let the candidate be the prominentest ((thing enclosed by the location) that is not queued for description);
if the candidate is enclosed by something not queued for description (called the holder):
now the candidate is the holder;
if the vicinity of the candidate is not queued for description:
now the candidate is the vicinity of the candidate;
set the locale priority of the candidate to the counter;
now the candidate is queued for description;
now everything enclosed by the candidate is queued for description;
now everything near the candidate is queued for description;
increment the counter.