Hebrew relationship translator/calculator

I guess “and” strings is used for other things too. it is properly translated “and” = “ו”, but in a “span” context it should translate to “ל” (with or without a “־” (makaf) that should behave as @yaron described).