You need to take into account the context of the scentence too.
"Vino en botella", translated without taking into account the context would be "He/She came in bottle" but translated taking the context into account is "Wine in bottle". Making a translator is much more complex than it seems.