AllPossibleSpellings-package: Finds all of word's possible spellings.

Description Details Author(s) See Also Examples

Description

There are two functions: possSpells.fnc and batch.possSpells.fnc. possSpells.fnc: For each word supplied to the possSpells.fnc function, all possible spellings for each word will be returned as well as the number of possible spellings for that word. batch.possSpells.fnc: For every word list contained in each of the .rda files, the names of which are stored in the object files, computes all of the words' possible spellings and writes the output to a .txt file.

Details

Package: AllPossibleSpellings
Type: Package
Version: 1.1
Date: 2010-11-12
License: GPL-2
LazyLoad: yes

The package contains the function possSpells.fnc and batch.possSpells.fnc.

Author(s)

Antoine Tremblay, IWK Health Center

Maintainer: Antoine Tremblay <trea26@gmail.com>

See Also

possSpells.fnc batch.possSpells.fnc

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
################################
#        possSpells.fnc        #
################################

# create a list of words
word.list<-c("d_ZZZ_s_t_I_t",
             "j_u_l_o",
             "f_A_m"
)
(as.matrix(word.list))

# process the words
x<-possSpells.fnc(word.list)
(matrix(x,ncol=4,nrow=29))

################################
#     batch.possSpells.fnc     #
################################

# create and save first word list
words<-c("d_ZZZ_s_t_I_t",
         "j_u_l_o",
         "f_A_m"
)
save(words,file="some.words.rda")

# create and sve second word list
words<-c("ZZZ_k_s_@_d_O_f_t",
         "b_E_N",
         "b_r_I_l_t"
)
save(words,file="other.words.rda")

# create and save third word list
words<-c("g_r_ZZZ_dZ",
         "k_e_v_I_t",
         "k_o_l_E_p"
)
save(words,file="more.words.rda")

# create and save fourth word list
words<-c("k_l_u_t_l",
         "d_ZZZ_g_o_s_o",
         "d_r_i_g_b_l_A_m"
)
save(words,file="yet.more.words.rda")

# create the vector of file names
files=c("some.words.rda",
        "other.words.rda",
        "more.words.rda",
        "yet.more.words.rda"
)

# process the files
# The list of possible spellings for each 
# word list are saved as a '.txt' file 
# in the current directory, e.g., 'some.words.txt'.
batch.possSpells.fnc(fn=files)

AllPossibleSpellings documentation built on May 1, 2019, 7:50 p.m.