I realize that it's usually better to just learn / use hiragana but I have
been asked to look into coding up a solution to convert from Hiragana/Katakana
to the modified Hepburn Romaji.

One point I would like some advice on is the conversion of:

```

    かいものをします
    
```

I see some converters changing this to:

```

    kaimonooshimasu
    
```

and others to:

```

    kaimonowoshimasu
    
```

Is there one or the other that I should aim for with the Modified Hepburn?
CC BY-SA 3.0
2017-03-20T15:44:55.820
44677
2017-08-05T05:39:29.823
20357
question
translation word-choice rōmaji
Converting を from Hiragana to Romaji
The correct romaji way is wo.

"O" is how you pronounce it and it's unnecessary since the first thing we
learn in Japanese is that を has one use and it's pronounced "o" but written
"wo".

We can also distinguish better what each word is in "kaimonowoshimasu".
CC BY-SA 3.0
2017-03-20T18:33:17.800
44683
2017-08-05T05:39:29.823
2017-08-05T05:39:29.823
16159
19794
44677
answer
As [Eiríkr
Útlendi](https://japanese.stackexchange.com/users/5229/eir%c3%adkr-%c3%9atlendi)
mentioned in a comment, the correct romanization for を in modified Hepburn is
`o`.

For traditional Hepburn, the correct romanization is `wo`.

To blatantly steal his wikipedia link as well, [here's the
reference](https://en.wikipedia.org/wiki/Hepburn_romanization#Particles). For
a programming project, you should be able to use the table at the end of that
page for a dict/hash translation. (with some special handling for ん)

> kaimonooshimasu

is correct for modified hepburn, but since you lack the word seperation
functions of kanji/kana alternation with romaji, people usually seperate words
with spaces when using romaji.
CC BY-SA 3.0
2017-03-20T22:24:21.467
44693
2017-03-20T22:24:21.467
2017-04-13T12:43:48.447
-1
29
44677
answer