It is based on each recipe, yes. Each different recipe is based either on Craft, M.Craft or a mix of both. At least that is what experience on the forums seem to be.

Sadly, there is no way, at all, to actually tell. There ought to be some logic underneath it all and people have been trying to find it, to no real avail.