I'm not quite getting the question. Can you show me what you'd expect such a method to do? What would you like to provide as input and get as output?
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi