Skip to main content
5 of 11
added 12 characters in body
TFeld
  • 19.9k
  • 3
  • 20
  • 63

Python 2, 172 147 143 139 133 132 bytes

lambda w:ord('\x18D6\x0e(\x1d%t*8'[sum(map(ord,w.replace('|','/')[:(w+'g').find('g')]))%20%12])*[.05,.075]['/'in w]*[1,.75]['g'in w]

Try it online!

TFeld
  • 19.9k
  • 3
  • 20
  • 63