4 * Sentence anagrams generation
5 * MSE course, T-AdvPrPa course
7 package object anagrams
{
10 * Loads a file dictionary which should be located in the src directory
12 def loadDictionary() = {
13 val wordstream
= Option
{
14 getClass
.getClassLoader
.getResourceAsStream("resources/linuxwords.txt")
16 sys
.error("Could not load word list, dictionary file not found")
19 val s
= io
.Source
.fromInputStream(wordstream
)
23 println("Could not load word list: " + e
)