Skip to contents

Returns a string vector of up to 20 full English card names that could be autocompletions of the given name argument.

Usage

autocomplete_name(name, include_extras = FALSE)

Arguments

name

A string with a card's name (or part of it). See details.

include_extras

If TRUE, extra cards (tokens, planes, etc) will be included.

Value

A string vector.

Details

The names are sorted with the nearest match first, highly favoring results that begin with your given string.

Spaces, punctuation, and capitalization are ignored.

If name is less than 2 characters long, or if no names match, the vector will contain 0 elements (instead of returning any errors).

Examples

# \donttest{
# Get all related card names
autocomplete_name("falken")
#>  [1] "Falkenrath Noble"                       
#>  [2] "Falkenrath Reaver"                      
#>  [3] "Falkenrath Gorger"                      
#>  [4] "Falkenrath Forebear"                    
#>  [5] "Falkenrath Torturer"                    
#>  [6] "Falkenrath Perforator"                  
#>  [7] "Falkenrath Marauders"                   
#>  [8] "Falkenrath Aristocrat"                  
#>  [9] "Falkenrath Celebrants"                  
#> [10] "Falkenrath Pit Fighter"                 
#> [11] "Falkenrath Exterminator"                
#> [12] "Anje Falkenrath"                        
#> [13] "Talons of Falkenrath"                   
#> [14] "Heir of Falkenrath // Heir to the Night"
# }