Creating a description of an item from an inventory
As you use item's name to search the item information, so you can design the name as the key of items hash table.

items = {
    "apple":
        {
            #type, edible,color information
        },
    ...
}