When choosing a nonalcoholic alternative for a recipe, it can help to consider what the alcohol was meant to do originally.