Module:accel/ja

Hello, you have come here looking for the meaning of the word Module:accel/ja. In DICTIOUS you will not only get to know all the dictionary meanings for the word Module:accel/ja, but we will also tell you about its etymology, its characteristics and you will know how to say Module:accel/ja in singular and plural. Everything you need to know about the word Module:accel/ja you have here. The definition of the word Module:accel/ja will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofModule:accel/ja, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.

This module contains new entry creation rules for Japanese; see WT:ACCEL for an overview, and Module:accel for information on creating new rules.


return {generate = function (params, entry)
	local translit_param =  params.transliteration and '|' .. params.transliteration:gsub('%-', ' ')
		or ''
	
	if params.form == 'romanized' then
		entry.pos_header = 'Romanization'
		entry.head = '{{ja-romaji}}'
		entry.def = '{{ja-romanization of|' .. params.origin .. '}}'
	elseif params.form == 'kana-noun' then
		entry.pos_header = 'Noun'
		entry.head = '{{ja-noun' .. translit_param .. '}}'
		entry.def = '{{ja-def|' .. params.origin .. '}} {{rfdef|ja}}'
	elseif params.form == 'kana-proper-noun' then
		entry.pos_header = 'Proper noun'
		entry.head = '{{ja-pos|proper' .. translit_param .. '}}'
		entry.def = '{{ja-def|' .. params.origin .. '}} {{rfdef|ja}}'
	elseif params.form == 'kana-verb' then
		entry.pos_header = 'Verb'
		entry.head = '{{ja-verb' .. translit_param .. '}}'
		entry.def = '{{ja-def|' .. params.origin .. '}} {{rfdef|ja}}'
	elseif params.form == 'kana-adjective' then
		entry.pos_header = 'Adjective'
		entry.head = '{{ja-adj' .. translit_param .. '}}'
		entry.def = '{{ja-def|' .. params.origin .. '}} {{rfdef|ja}}'
	elseif params.form == 'kana-adverb' then
		entry.pos_header = 'Adverb'
		entry.head = '{{ja-pos|adverb' .. translit_param .. '}}'
		entry.def = '{{ja-def|' .. params.origin .. '}} {{rfdef|ja}}'
	else
		return entry.no_rule_error(params)
	end
end}