To adapt this recipe for a gluten-free diet, substitute the all-purpose flour with a 1:1 gluten-free baking flour blend that includes xanthan gum or similar binding agents. Ensure all other ingredients, such as the chocolate chips and spices, are certified gluten-free, as cross-contamination can occur in processing. Bake times may vary slightly—check for doneness using the toothpick method and adjust as needed.