Gastric acid
The main constituent of gastric acid is hydrochloric acid which is produced by parietal cells (also called oxyntic cells) in the gastric glands in the stomach. Its secretion is a complex and relatively energetically expensive process. Parietal cells contain an extensive secretory network (called canaliculi) from which the hydrochloric acid is secreted into the lumen of the stomach. The pH of gastric acid is 1.5 to 3.5 in the human stomach lumen, the acidity being maintained by the proton pump H/K ATPase. The parietal cell releases bicarbonate into the bloodstream in the process, which causes a temporary rise of pH in the blood, known as an alkaline tide.
Cider
The acids in cider play a vital role in both the cider making process and in the final flavour of a finished cider. They are present in both apples and cider, and add a sour taste and a pungent odor to these respective substances. Acids also serve as a preservative in the cider since microbes grow less in lower pH environments and contribute to the fermentation process. Most ciders have a pH of between 3.3 and 4.1. The primary acid found in apples is malic acid which accounts for around 90% of the acid content in apples. Malic acid contributes to the tart and sour flavours found in cider, and typically between 4.5 and 7.5 grams of malic acid per liter of cider is preferred. Malic acid is also used to determine apple ripeness for harvesting, as its concentration decreases as the fruit ripens. Lactic acid is also commonly found in cider, and it is mainly formed from malo-lactic fermentation, a process that converts malic acid into lactic acid. This process rounds out the flavour of the cider while reducing a lot of the acidity and producing carbon dioxide as well. Other acids such as citric acid can be used to add taste after fermentation, but these acids are not typically found in high concentration in apples naturally.