My understanding
@Sasha, is that it's simpler than that, at least in terms of doing the maths for a ketogenic diet. Total carbohydrates includes fibre, but fibre doesn't have the same effect on the body that sugar and starch does. So, we can subtract out the fibre content of foods when calculating the amount of carbohydrates eaten.
So for example, 40g of celery has 1.2g of carbohydrates, but 0.6 g of that is fibre. So the net carbohydrates, the ones that will significantly impact whether or not ketones are produced, are only 0.6g.
No doubt the various types of fibre do affect sugar and starch utilisation one way or another, but I don't think we need to worry too much about that.
Thanks to
@adambeyoncelowe for pointing out that nutritional advice panels on food differ in how they report total and net carbohydrates, with non-US panels tending to report carbohydrates as net carbohydrates (total carbohydrates - fibre). I've found in the food logger app I used, the preloaded carbohydrate figures for various foods tends to be a mish-mash of total carbohydrate and net carbohydrate. Which was annoying.