![](https://secure.gravatar.com/avatar/8b5a3ee6fe397b9fd2f13c1ae4079f99.jpg?s=120&d=mm&r=g)
I have a document with thousands of index entries. Here’s a samplecode: \starttext Some people livedin \index{cliff-dwelling}cliff-dwellings, while others lived in\index{lean-to}lean-tos. \placeindex \stoptext This produces anindex like this: c cliff-dwelling 1 l lean-to 1 I’d like to createan index with much more sub-categories to find the same entries, forinstance, a category of “dwellings”: c cliff-dwelling 1 d dwellings cliff-dwelling 1 lean-to 1 l lean-to 1 As I’m aware, theway to code this is as follows: \starttext Some people livedin\index{cliff-dwelling}\index{dwellings+cliff-dwelling}cliff-dwellings,while others lived in\index{lean-to}\index{dwellings+lean-to}lean-tos. \placeindex \stoptext I’m wondering ifthere is a short-cut means to set this up, such that if I can tellthe document that any time it sees “cliff-dwellings” in an index,it will also add its page numbers to under “dwellings+cliff-dwelling”? In other words, is there an easierway to add these categories, then to go through the entire documentand mark them? I already have a list of all the words. For instance, in my above code, I must find every \index{cliff-dwelling} entry and add a \index{dwellings+cliff-dwelling} next to it...which would take hundreds of hours if I did that for every word. Is there a quicker way to tell it always also add it under "dwellings" too? --Joel