This probably seems like a strange question so I'll get to the point first.
I essentially want to be able to take two input languages and create sentences by using vocabulary from both based on an algorithm. For example: take English and Spanish and decide that the sentence is going to be 80% English and 20% Spanish, a typical output might be "Hello, my name es Tim".
Is there an algorithm that essentially allows you to "lerp" between two languages?
I acknowledge that such an algorithm wouldn't be perfect at appreciating the nuances between different languages, but to some degree this wouldn't be necessary.
I also acknowledge that this wouldn't necessarily be the correct community to ask this question in, but honestly I can't decide where it would go.