I am trying to build a simple dictionary of all us english vs uk english differences for a web application I am working on.
Is there a non-hacky way to build a dictionary where both the value and key can be looked up in python as efficiently as possible? I'd prefer not to loop through the dict by values for us spelling. For example:
baz = {'foo', 'bar'}
# baz['foo'] => 'bar'
# baz['bar'] => 'foo'