Does that include people with lodgers? How are you planning to distinguish between houses in multiple occupancy and "family units"?
I had defined that in the post - I guess your eagerness to respond didn't allow you to read it properly. No problem.
As I said, two people who aren't in a relationship are considered separate.
What about siblings sharing houses: family unit, or not? What about people whose adult children are living with them? How many family units are there in a house containing a grandparent, two of their children and four of their grandchildren?
Look - details, details. My consultancy fees are quite high and I'm not going to write a prototype for you for any less than six figures. I do like that sum.
If I have a lodger who has a child, and sleep with them once, have we become a family unit? Twice? Three times?
I will answer this, because I'm so impressed with your vivid imagination. If your sauvignon blanc fuelled night of passion with the lodger happens once, that's nobodies business. Twice even.
Here's my proposed algorithm. This is a piece of pseudocode, published under the workingdilemma public license.
Apologies, this is the opposite sex algo - we'll be dealing with same sex couples in the full implementation.
We'll be monitoring this using an internal rfid chip, a bit like an oyster card. If contact is detected, that's a hit. Apologies men, you're going to need your penis chipped.
We'll also be using internal sensors to monitor blood alcohol levels.
acceptedAlcTolerance = 0.00001 // apologies for the hard coded value.
definiteSexCount = 0
nowAFamilyUnit = false
while (landload and lodger live together) {
if landlordAlcTolerance < acceptedAlcTolerance and
lodgerAlcTolerance < acceptedAlcTolerance then {
//this means that the couple are not under the influence
if penetration occurs 3 times within 15 seconds then
#expected pump frequency
definiteSex +=1
continue
}
}
if definiteSex > 3 then
nowAFamilyUnit = true
callHMRC()
}
There's probably a few bugs and we'll have to deal with how to process things as events, but it shouldn't be insurmountable.
Hope that clears that up.
Thanks,
Workingdilemma.