Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
For all of the Japanese input tools I can think of, just a "-" produces the "ー", but I would think that'd be the first thing to try, so maybe you're using some tool I'm not aware of. What tool are you using to input Japanese?
pa-thi-
to getパーティー
.