Heat pressure cooker on medium heat, or set to Saute function if using an electric model, such as an Instant Pot. Saute onions, garlic, spices, carrots, celery, and potatoes for 3-5 minutes, or until onions begin to soften. Stir in the lentils to combine. Add water to cover. Lock the lid into place and bring to high pressure. Once at pressure, reduce heat to maintain pressure and cook for 3 minutes. If using an electric model, the pressure will be maintained automatically. Use the quick release method to release the pressure until it is safe to unlock the lid. Stir in the chard, season to taste with salt and pepper, and serve. In a large stockpot over medium heat, saute the onions, garlic, spices, carrots, celery, and potatoes over for 3-5 minutes, until the onions have softened. Stir in the lentils and water. Bring to a boil, then lower the heat to a simmer and cook for 20 minutes, or until the lentils are tender but not mushy. Turn off the heat and stir in the chard. Season with salt and pepper to taste, and serve.