We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ruby -ne 'puts $_.gsub(/([\p{hiragana}&&[^ん]])ん(?=\b|[一-龠々、。!\p{hiragana}&&[^ん]])|([一-龠々])ん(?=[\p{hiragana}&&[^ん]])/, "\\1\\2ン")'