Learn R Programming

ScrabbleScore (version 1.0)

ScrabbleScore-package: Calculates Scrabble score for strings

Description

Given a word will produce that word's scrabble score. Unlike many naive implementations this package takes into consideration the distribution of letters in scrabble. So a word like 'zzz' will be scored '10' rather than '30'.

Arguments

Details

Package:
ScrabbleScore
Type:
Package
Version:
1.0
Date:
2013-09-30
License:
MIT License
The most useful function is 'sws' which computes the Scrabble word score for a given string. It takes into account the letter distribution so not to count impossible letter combinations, such as 'zzz' (worth 10 rather than 30 due to necessity of blanks)

References

https://github.com/willkurt/scrabble_score

Examples

Run this code
data(twl06)
sws(head(twl06))

Run the code above in your browser using DataLab