Some basic concepts you'll see no matter what you're trying to ferment:
-Yeast convert sugar to alcohol, so measuring the amount of sugar present before adding yeast can often predict how much alcohol you'll end up with
-Sugar is heavier than pure water, so you can measure how much is present by measuring how dense (weight per volume) the water/sugar solution is. You do this by floating a hydrometer in solution, the denser the solution the higher it will float. The numbers that tool will give you will typically be from 1.000 to 1.080 (or higher), meaning the mixture is either 1.000 times the density of water (or just water) or 1.080 times the density of water (meaning there is sugar present).
-Finally, yeast can only tolerate so much alcohol before they stop fermenting. So if you know how much sugar you start with, and how much will be turned into alcohol before they yeast can no longer continue, you can estimate how much will be left over causing sweetness.