def METHOD_NAME(args: DropdownAnswerModel) -> PluginAnswerResp:
    web: PluginAnswerWeb = {}
    result: PluginAnswerResp = {"web": web}
    selectedword = args.input.selectedWord
    # plugin can ask not to save the word
    nosave = args.input.nosave
    if not nosave:
        save: dict[str, str | dict[str, str]] = {"c": selectedword}
        if not args.markup.clearstyles and args.state is not None:
            if args.state.styles and type(args.state.styles) is dict:
                save["styles"] = args.state.styles
        result["save"] = save
        web["result"] = "saved"
    else:
        save = {"c": ""}
        result["save"] = save
        web["result"] = "saved"
    return result