localexport={}localcategorise_syllables={["es"]=true,["fr"]=true,["it"]=true,["pt"]=true,}functionexport.hyphenation(frame)localparent_args=frame:getParent().argslocalcompat=parent_args["lang"]localoffset=compatand0or1localparams={[compatand"lang"or1]={required=true,default="und"},[1+offset]={list=true,required=true,default="{{{2}}}"},["caption"]={},["nocaption"]={type="boolean"},["sc"]={},}localargs=require("Module:parameters").process(parent_args,params)locallang=args[compatand"lang"or1]locallang=require("Module:languages").getByCode(lang)orerror("The language code \""..lang.."\" is not valid.")localsc=args["sc"]and(require("Module:scripts").getByCode(args["sc"])orerror("The script code \""..sc.."\" is not valid."))ornillocaltext=require("Module:links").full_link({lang=lang,sc=sc,alt=table.concat(args[1+offset],"‧"),tr="-"})localcategory=""ifcategorise_syllables[lang:getCode()]thencategory=require("Module:utilities").format_categories({lang:getCanonicalName().." "..tostring(#args[1+offset]).."-syllable words"},lang)endreturn(args["nocaption"]and""or(args["caption"]or"Hyphenation")..": ")..text..categoryendreturnexport