ユーザー辞書

ユーザー辞書に単語を追加する

ユーザー辞書に単語を追加します。<br> 複合語を辞書に追加するには、?surface=新田&surface=真剣佑&pronunciation=あらた&pronunciation=まっけんゆう&accent_type=1&accent_type=3 のように、surface, pronunciation, accent_type を同じ長さのリストで指定します。

post/user_dict_word

Query parameters

surfacestring[] required

単語の表層形

単語の表層形

pronunciationstring[] required

単語の発音(カタカナ)

単語の発音(カタカナ)

accent_typeinteger[] required

東京式アクセントにおけるアクセント型<br>音高が下がる直前のモーラのインデックスを 1-indexed で指定します。0 は平板型を意味します。<br>例として、surface: ["新田", "真剣佑"], pronunciation: ["あらた", "まっけんゆう"] のとき、accent_type: [1, 3] (新田 → 頭高型, 真剣佑 → 中高型) のように指定します。

東京式アクセントにおけるアクセント型<br>音高が下がる直前のモーラのインデックスを 1-indexed で指定します。0 は平板型を意味します。<br>例として、surface: ["新田", "真剣佑"], pronunciation: ["あらた", "まっけんゆう"] のとき、accent_type: [1, 3] (新田 → 頭高型, 真剣佑 → 中高型) のように指定します。

word_type'PROPER_NOUN' | 'LOCATION_NAME' | 'ORGANIZATION_NAME' | 'PERSON_NAME' | 'PERSON_FAMILY_NAME' | 'PERSON_GIVEN_NAME' | 'COMMON_NOUN' | 'VERB' | 'ADJECTIVE' | 'SUFFIX'

品詞を表す列挙型。

単語の品詞<br>固有名詞 / 地名 / 組織・施設名 / 人名 / 人名 (姓) / 人名 (名) / 普通名詞 / 動詞 / 形容詞 / 語尾 のいずれかを指定します。<br>未指定時は 固有名詞 が設定されます。

priorityinteger

単語の優先度 (1~9 の範囲を推奨)<br>数値が大きいほど、辞書適用時に優先して利用されます。<br>未指定時は 5 が設定されます。

単語の優先度 (1~9 の範囲を推奨)<br>数値が大きいほど、辞書適用時に優先して利用されます。<br>未指定時は 5 が設定されます。

Response

追加した単語の UUID

string required

Changes

Changed in 16 of the 50 revisions of this API.33839

    • added the optional property detail/items/ctx to the response with the 422 status

      response-optional-property-added

    • added the optional property detail/items/input to the response with the 422 status

      response-optional-property-added

    • for the query request parameter priority, default value 5 was added

      request-parameter-default-value-added

    • for the query request parameter word_type, default value PROPER_NOUN was added

      request-parameter-default-value-added

    • for the query request parameter accent_type, the type/format was generalized from integer/ to array/

      request-parameter-type-generalized

    • for the query request parameter pronunciation, the type/format was generalized from string/ to array/

      request-parameter-type-generalized

    • for the query request parameter surface, the type/format was generalized from string/ to array/

      request-parameter-type-generalized

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • added the new enum value LOCATION_NAME to the query request parameter word_type

      request-parameter-enum-value-added

    • added the new enum value ORGANIZATION_NAME to the query request parameter word_type

      request-parameter-enum-value-added

    • added the new enum value PERSON_FAMILY_NAME to the query request parameter word_type

      request-parameter-enum-value-added

    • added the new enum value PERSON_GIVEN_NAME to the query request parameter word_type

      request-parameter-enum-value-added

    • added the new enum value PERSON_NAME to the query request parameter word_type

      request-parameter-enum-value-added

    This revision also has 4 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • removed the enum value LOCATION_NAME from the query request parameter word_type

      request-parameter-enum-value-removed

    • removed the enum value ORGANIZATION_NAME from the query request parameter word_type

      request-parameter-enum-value-removed

    • removed the enum value PERSON_FAMILY_NAME from the query request parameter word_type

      request-parameter-enum-value-removed

    • removed the enum value PERSON_GIVEN_NAME from the query request parameter word_type

      request-parameter-enum-value-removed

    • removed the enum value PERSON_NAME from the query request parameter word_type

      request-parameter-enum-value-removed

    • api operation id add_user_dict_word_user_dict_word_post removed and replaced with add_user_dict_word

      api-operation-id-removed

    This revision also has 8 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • added the new enum value LOCATION_NAME to the query request parameter word_type

      request-parameter-enum-value-added

    • added the new enum value ORGANIZATION_NAME to the query request parameter word_type

      request-parameter-enum-value-added

    • added the new enum value PERSON_FAMILY_NAME to the query request parameter word_type

      request-parameter-enum-value-added

    • added the new enum value PERSON_GIVEN_NAME to the query request parameter word_type

      request-parameter-enum-value-added

    • added the new enum value PERSON_NAME to the query request parameter word_type

      request-parameter-enum-value-added

  • 54501f4624fd16See the full diff
    • the query request parameter word_type was restricted to a list of enum values

      request-parameter-became-enum

    • added the new enum value ADJECTIVE to the query request parameter word_type

      request-parameter-enum-value-added

    • added the new enum value COMMON_NOUN to the query request parameter word_type

      request-parameter-enum-value-added

    • added the new enum value PROPER_NOUN to the query request parameter word_type

      request-parameter-enum-value-added

    • added the new enum value SUFFIX to the query request parameter word_type

      request-parameter-enum-value-added

    • added the new enum value VERB to the query request parameter word_type

      request-parameter-enum-value-added

    • for the query request parameter word_type, the type/format was generalized from / to string/

      request-parameter-type-generalized

    This revision also has 4 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • removed the enum value ADJECTIVE from the query request parameter word_type

      request-parameter-enum-value-removed

    • removed the enum value COMMON_NOUN from the query request parameter word_type

      request-parameter-enum-value-removed

    • removed the enum value PROPER_NOUN from the query request parameter word_type

      request-parameter-enum-value-removed

    • removed the enum value SUFFIX from the query request parameter word_type

      request-parameter-enum-value-removed

    • removed the enum value VERB from the query request parameter word_type

      request-parameter-enum-value-removed

    • for the query request parameter word_type, the type/format was generalized from string/ to /

      request-parameter-type-generalized

    This revision also has 7 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

  • 179894d155aa16See the full diff
    • the query request parameter word_type was restricted to a list of enum values

      request-parameter-became-enum

    • added the new enum value ADJECTIVE to the query request parameter word_type

      request-parameter-enum-value-added

    • added the new enum value COMMON_NOUN to the query request parameter word_type

      request-parameter-enum-value-added

    • added the new enum value PROPER_NOUN to the query request parameter word_type

      request-parameter-enum-value-added

    • added the new enum value SUFFIX to the query request parameter word_type

      request-parameter-enum-value-added

    • added the new enum value VERB to the query request parameter word_type

      request-parameter-enum-value-added

    • for the query request parameter word_type, the type/format was generalized from / to string/

      request-parameter-type-generalized

  • eb97301b5bb322See the full diff
    • query request parameter priority list-of-types was narrowed by removing types null

      request-parameter-list-of-types-narrowed

    • for the query request parameter priority, the type/format was changed from / to integer/

      request-parameter-type-changed

    • for the query request parameter priority, the max was set to 10.00

      request-parameter-max-set

    • for the query request parameter priority, the min was set to 0.00

      request-parameter-min-set

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog