lexeme_add_sense#

wikibaseintegrator.wbi_helpers.lexeme_add_sense(lexeme_id, data, baserevid=None, tags=None, is_bot=False, **kwargs)[source]#

Adds a Sense to a Lexeme

Parameters:
  • lexeme_id (str) – ID of the Lexeme, e.g. L10

  • data (dict) – JSON-encoded data for the Sense, i.e. its glosses

  • baserevid (int | None, default: None) – Base Revision ID of the Lexeme, if edit conflict check is wanted.

  • tags (list[str] | None, default: None) – Change tags to apply to the revision.

  • is_bot (bool, default: False) – Mark this edit as bot.

  • kwargs (Any)

Return type:

dict

Returns: