convertWithRomaji

fun convertWithRomaji(message: String, converter: RomanjiConverter, timeoutMs: Long = 1000): String(source)

Converts a message using romaji-to-Japanese conversion with timeout protection. Returns the original message appended with the conversion result, or the original message on failure.

Return

The message with conversion appended (e.g., "hello §e(こんにちは)"), or the original message.

Parameters

message

The message to convert.

converter

The RomanjiConverter to use.

timeoutMs

Timeout in milliseconds for the conversion (default: 1000ms).