Urban Dictionary: Handle Linked Definitions #47
Labels
No labels
Ad hoc
Blocked
Bug
Improvement
New Feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
SethFalco/elypiai#47
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The UrbanDictionary API can provide API responses with words enclosed in square brackets, for example:
The words linked in
[]are references to other words.We should make a way to process these bracketed terms in the
definitionfield.My proposal is that we make this a dynamic implementation which can be set at runtime through a setter in the UrbanDictionary object.
It'll take a function interface which can be implemented or set inline for how to interpolate these strings.
The default implementations should handle:
It may be desirable to also make a "DefineOptions" class which can be given as a parameter per request for exceptions to the global rule.