For example, the taxonomies for community chat in Discord and Messenger are different, but they serve the same functionality:
| Discord | Messenger |
|---|---|
| Server | Community |
| Text Channel/Forum Channel | Community Chat |
| Channel Thread/Forum Post | Sidechat |
In my code I want to use the taxonomy of Discord to have better readability experience. Is there a tag to document that the variable names can be different in another taxonomy?
/**
* @tagForFunctionName doStuff - This can work on both Discord servers or Messenger community
* @tagForVariableName server, servers - In Discord it's called server. In Messenger it's call community
* @tagForVariableName channel, channels - In Discord it's called channel. In Messenger it's call community chat
* @tagForVariableName thread, threads - In Discord it's called thread or topic. In Messenger it's call sidechat
*/
function doStuff(){
const server = ...
const servers = ...
const channel = ...
const channels = ...
const thread = ...
const threads = ...
}
Use the tag @context tag from json linked data . Then in the linked document (inside the comments or separate document) define the alternative identifier names using Json linked data.