diff --git a/pom.xml b/pom.xml index e66b725..efb68c4 100644 --- a/pom.xml +++ b/pom.xml @@ -7,6 +7,18 @@ io.zipcoder collections 1.0-SNAPSHOT + + + + org.apache.maven.plugins + maven-compiler-plugin + + 1.8 + 1.8 + + + + diff --git a/src/main/java/io/zipcoder/MainApplication.java b/src/main/java/io/zipcoder/MainApplication.java new file mode 100644 index 0000000..3fb9df4 --- /dev/null +++ b/src/main/java/io/zipcoder/MainApplication.java @@ -0,0 +1,20 @@ +package io.zipcoder; + +import java.io.IOException; + +public class MainApplication { + + public static void main(String[] args) { + WC wordCountsimulation = new WC("/Users/petermccormick/Dev/Peter/Week6Labs/CR-MesoLabs-Collections-" + + "EncapsulativeCharacters/src/main/resources/14015.txt"); + + wordCountsimulation.wordCollector(); + wordCountsimulation.sortWordCollector(); + wordCountsimulation.printSortedMap(); + try { + wordCountsimulation.printToText(); + } catch (IOException e) { + e.printStackTrace(); + } + } +} diff --git a/src/main/java/io/zipcoder/ParenChecker.java b/src/main/java/io/zipcoder/ParenChecker.java index caee675..7e01870 100644 --- a/src/main/java/io/zipcoder/ParenChecker.java +++ b/src/main/java/io/zipcoder/ParenChecker.java @@ -1,4 +1,58 @@ package io.zipcoder; +import java.util.Stack; + public class ParenChecker { + + ParenChecker() { + + } + + public boolean parenPair(String string) { + + Stack stack = new Stack(); + + for (int i = 0; i ' ) { + return false; + } + if (character == '(' || character == '{' || character == '[' || character == '<' || character == '\'' || + character == '"') { + stack.push(character); + } + if (character == ')' || character == '}' || character == ']' || character == '>' || + character == '\'' || character == '"') { + stack.pop(); + } + } + return stack.isEmpty(); + + + } + + + } diff --git a/src/main/java/io/zipcoder/WC.java b/src/main/java/io/zipcoder/WC.java index babb68c..8e35b66 100644 --- a/src/main/java/io/zipcoder/WC.java +++ b/src/main/java/io/zipcoder/WC.java @@ -1,12 +1,19 @@ package io.zipcoder; -import java.io.FileNotFoundException; -import java.io.FileReader; -import java.util.Iterator; -import java.util.Scanner; +import java.io.*; +import java.util.*; + +import static java.util.stream.Collectors.toMap; public class WC { + private Iterator si; + private Map wordCounter = new LinkedHashMap(); + + + public WC() { + + } public WC(String fileName) { try { @@ -20,4 +27,44 @@ public WC(String fileName) { public WC(Iterator si) { this.si = si; } + + public Map wordCollector() { + while (si.hasNext()) { + String nextWord = si.next().toLowerCase().replaceAll("[^a-z]", ""); + + if (wordCounter.containsKey(nextWord)) { + wordCounter.put(nextWord, wordCounter.get(nextWord) + 1); + } else wordCounter.put(nextWord, 1); + } + return wordCounter; + } + + public Map sortWordCollector() { + Map sortByDes = wordCollector().entrySet() + .stream() + .sorted(Map.Entry.comparingByValue().reversed().thenComparing(Map.Entry.comparingByKey())) + .collect(toMap(Map.Entry::getKey, + Map.Entry::getValue, (e1, e2) -> e1, LinkedHashMap::new)); + return sortByDes; + + } + + public String printSortedMap() { + StringBuilder printOut = new StringBuilder(); + for (Map.Entry e: sortWordCollector().entrySet()) { + printOut.append(String.format("%18s : Occurred %5d times!\n", e.getKey(), e.getValue())); + //////printOut.append(e.getKey() + " : Occurred " + e.getValue() + " times!\n" );\\\\\\\ + } return printOut.toString(); + } + + public void printToText() throws IOException { + final File file = new File( + "/Users/petermccormick/Dev/Peter/Week6Labs/CR-MesoLabs-Collections-EncapsulativeCharacters" + + "/src/main/resources/WordCountResults.txt"); + FileWriter fileWriter = new FileWriter(file); + BufferedWriter bufferedWriter = new BufferedWriter(fileWriter); + bufferedWriter.write(printSortedMap()); + bufferedWriter.close(); + } + } diff --git a/src/main/resources/14015.txt b/src/main/resources/14015.txt new file mode 100644 index 0000000..1094716 --- /dev/null +++ b/src/main/resources/14015.txt @@ -0,0 +1,518 @@ +Title: The Discovery of Witches + +Author: Matthew Hopkins + +Release Date: November 10, 2004 [eBook #14015] + +Language: English + + + +THE DISCOVERY OF WITCHES + +IN Answer to severall QUERIES, LATELY Delivered to the Judges of +Assize for the County of NORFOLK + +And now published by + +MATTHEW HOPKINS, Witch-finder + +FOR the Benefit of the whole KINGDOME + +M. DC. XLVII. + + + + + + + + EXOD. 22.18. + + Thou shalt not suffer a witch to live. + + + + + + + Certaine _Queries_ answered, which have been and are likely to + be objected against MATTHEW HOPKINS, in his way of finding out + _Witches_. + + + +Querie 1. + + _That he must needs be the greatest Witch, Sorcerer, and Wizzard + himselfe, else hee could not doe it._ + + +Answ. + +If _Satan's_ kingdome be divided against it selfe, how shall it stand? + + + +Querie 2. + + _If he never went so farre as is before mentioned, yet for + certaine he met with the Devill, and cheated him of his Booke, + wherein were written all the Witches names in_ England, _and if + he looks on any Witch, he can tell by her countenance what she + is; so by this, his helpe is from the Devill._ + + +Answ. + +If he had been too hard for the devill and got his book, it had been +to his great commendation, and no disgrace at all: and for judgement +in _Phisiognomie_, he hath no more then any man else whatsoever. + + + +Quer. 3. + + _From whence then proceeded this his skill? was it from his + profound learning, or from much reading of learned Authors + concerning that subject?_ + + +Answ. + +From neither of both, but from experience, which though it be meanly +esteemed of, yet the surest and safest way to judge by. + + + +Quer. 4. + + _I pray where was this experience gained? and why gained by him + and not by others?_ + + + +Answ. + +The Discoverer never travelled far for it, but in _March_ 1644 he had +some seven or eight of that horrible sect of Witches living in the +Towne where he lived, a Towne in Essex called _Maningtree_, with +divers other adjacent Witches of other towns, who every six weeks in +the night (being alwayes on the Friday night) had their meeting close +by his house and had their severall solemne sacrifices there offered +to the _Devill_, one of which this discoverer heard speaking to her +_Imps_ one night, and bid them goe to another Witch, who was thereupon +apprehended, and searched, by women who had for many yeares knowne the +Devills marks, and found to have three teats about her, which honest +women have not: so upon command from the _Justice_ they were to keep +her from sleep two or three nights, expecting in that time to see her +_familiars_, which the fourth night she called in by their severall +names, and told them what shapes, a quarter of an houre before they +came in, there being ten of us in the roome, the first she called was + +1. _Holt_, who came in like a white kitling. + +2. _Jarmara_, who came in like a fat Spaniel without any legs at all, +she said she kept him fat, for she clapt her hand on her belly and +said he suckt good blood from her body. + +3. _Vinegar Tom_, who was like a long-legg'd Greyhound, with an head +like an Oxe, with a long taile and broad eyes, who when this +discoverer spoke to, and bade him goe to the place provided for him +and his Angels, immediately transformed himselfe into the shape of a +child of foure yeeres old without a head, and gave halfe a dozen +turnes about the house, and vanished at the doore. + +4. _Sack and Sugar_, like a black Rabbet. + +5. _Newes_, like a Polcat. All these vanished away in a little time. +Immediately after this Witch confessed severall other Witches, from +whom she had her _Imps_, and named to divers women where their marks +were, the number of their _Marks_, and _Imps_, and _Imps_ names, as +_Elemanzer_, _Pyewacket_, _Peckin the Crown_, _Grizzel_, _Greedigut_, +_&c._ which no mortall could invent; and upon their searches the same +Markes were found, the same number, and in the same place, and the +like confessions from them of the same Imps, (though they knew not +that we were told before) and so peached one another thereabouts that +joyned together in the like damnable practise that in our Hundred in +_Essex_, 29. were condemned at once, 4. brought 25. Miles to be +hanged, where this Discoverer lives, for sending the Devill like a +Beare to kill him in his garden, so by seeing diverse of the mens +Papps, and trying wayes with hundreds of them, he gained this +experience, and for ought he knowes any man else may find them as +well as he and his company, if they had the same skill and experience. + + + +Quer. 5. + + _Many poore People are condemned for having a Pap, or Teat about + them, whereas many People (especially antient People) are, and + have been a long time troubled with naturall wretts on severall + parts of their bodies and other naturall excressencies, as + Hemerodes, Piles, Childbearing, &c. and these shall be judged + only by one man alone and a woman, and so accused or acquitted._ + + +Answ. + +The parties so judging can justifie their skill to any, and shew good +reasons why such markes are not meerly naturall, neither that they can +happen by any such naturall cause as is before expressed, and for +further answer for their private judgements alone, it is most false +and untrue, for never was any man tryed by search of his body, but +commonly a dozen of the ablest men in the parish or else where, were +present, and most commonly as many ancient skilfull matrons and +midwives present when the women are tryed, which marks not only he, +and his company attest to be very suspitious, but all beholders, the +skilfulest of them, doe not approve of them, but likewise assent that +such tokens cannot in their judgements proceed from any the above +mentioned Causes. + + + +Quer. 6. + + _It is a thing impossible for any or woman to judge rightly on + such marks, they are so neare to naturall excressencies and they + that finde them, durst not presently give Oath they were drawne + by evil spirits, till they have used unlawfull courses of + torture to make them say any thing for ease and quiet, as who + would not do? but I would know the reasons he speakes of, how, + and whereby to discover the one from the other, and so be + satisfied in that._ + + +Answ. + +The reasons in breefe are three, which for the present he judgeth to +differ from naturall marks which are: + +1. He judgeth by the unusualnes of the place where he findeth the +teats in or on their bodies being farre distant from any usuall +place, from whence such naturall markes proceed, as if a witch plead +the markes found are Emerods, if I finde them on the bottome of the +back-bone, shall I assent with him, knowing they are not neere that +veine, and so others by child-bearing, when it may be they are in the +contrary part? + +2. They are most commonly insensible, and feele neither pin, needle, +aule, &c. thrust through them. + +3. The often variations and mutations of these marks into severall +formes, confirmes the matter; as if a Witch hear a month or two before +that the _Witch-finder_ (as they call him) is comming they will, and +have put out their Imps to others to suckle them, even to their owne +young and tender children; these upon search are found to have dry +skinnes and filmes only, and be close to the flesh, keepe her 24. +houres with a diligent eye, that none of her Spirits come in any +visible shape to suck her; the women have seen the next day after her +Teats extended out to their former filling length, full of corruption +ready to burst, and leaving her alone then one quarter of an houre, +and let the women go up againe and shee will have them drawn by her +Imps close againe: _Probatum est._ Now for answer to their tortures +in its due place. + + + +Quer. 7. + + _How can it possibly be that the Devill bring a spirit, and + wants no nutriment or sustentation, should desire to suck any + blood? and indeed as he is a spirit he cannot draw any such + excressences, having neither flesh nor bone, nor can be felt, + &c._ + + +Ans. + +He seekes not their bloud, as if he could not subsist without that +nourishment, but he often repairs to them, and gets it, the more to +aggravate the Witches damnation, and to put her in mind of her +_Covenant_; and as he is a Spirit and Prince of the ayre, he appeares +to them in any shape whatsoever, which shape is occasioned by him +through joyning of condensed thickned aire together, and many times +doth assume shapes of many creatures; but to create any thing he +cannot do it, it is only proper to God: But in this case of drawing +out of these Teats, he doth really enter into the body, reall, +corporeall, substantiall creature, and forceth that Creature (he +working in it) to his desired ends, and useth the organs of that body +to speake withall to make his compact up with the Witches, be the +creature Cat, Rat, Mouse, &c. + + + +Quer. 8. + + _When these Paps are fully discovered, yet that will not serve + sufficiently to convict them, but they must be tortured and kept + from sleep two or three nights, to distract them, and make them + say any thing; which is a way to tame a wilde Colt, or Hawke, + &c._ + + +Ans. + +In the infancy of this discovery it was not only thought fitting, but +enjoyned in _Essex_ and _Suffolke_ by the Magistrates, with this +intention only, because they being kept awake would be more the active +to cal their imps in open view the sooner to their helpe, which +oftentimes have so happened; and never or seldome did any Witch ever +complaine in the time of their keeping for want of rest, but after +they had beat their heads together in the Goale; and after this use +was not allowed of by the judges and other Magistrates, it was never +since used, which is a yeare and a halfe since, neither were any kept +from sleep by any order or direction since; but peradventure their own +stubborne wills did not let them sleep, though tendered and offered to +them. + + + + +Quer. 9. + + _Beside that unreasonable watching, they were extraordinarily + walked, till their feet were blistered, and so forced through + that cruelty to confesse, &c._ + + +Ans. + +It was in the same beginning of this discovery, and the meaning of +walking of them at the highest extent of cruelty, was only they to +walke about themselves the night they were watched, only to keepe them +waking: and the reason was this, when they did lye or sit in a chaire, +if they did offer to couch downe, then the watchers were only to +desire them to sit up and walke about, for indeed when they be +suffered so to couch, immediately comes their Familiars into the room +and scareth the watchers, and heartneth on the Witch, though contrary +to the true meaning of the same instructions, diverse have been by +rusticall People, (they hearing them confess to be Witches) mis-used, +spoiled, and abused, diverse whereof have suffered for the same, but +could never be proved against this Discoverer to have a hand in it, or +consent to it; and hath likewise been un-used by him and others, ever +since the time they were kept from sleepe. + + + +Quer. 10. + + _But there hath been an abominable, inhumane, and unmercifull + tryall of these poore creatures, by tying them, and heaving them + into the water; a tryall not allowable by Law or conscience, and + I would faine know the reasons for that._ + + +Ans. + +It is not denyed but many were so served as had Papps, and floated, +others that had none were tryed with them and sunk, but marke the +reasons. + +For first the Divels policie is great, in perswading many to come of +their own accord to be tryed, perswading them their marks are so close +they shall not be found out, so as diverse have come 10. or 12. Miles +to be searched of their own accord, and hanged for their labour, (as +one _Meggs_ a Baker did, who lived within 7. Miles of _Norwich_, and +was hanged at _Norwich_ Assizes for witchcraft) then when they find +that the Devil tells them false they reflect on him, and he (as 40. +have confessed) adviseth them to be sworne, and tels them they shall +sinke and be cleared that way, then when they be tryed that way and +floate, they see the Devill deceives them againe, and have so laid +open his treacheries. + +2. It was never brought in against any of them at their tryals as any +evidence. + +3. King _James_ in his _Demonology_ saith, it is a certaine rule, for +(saith he) Witches deny their baptisme when they Covenant with the +Devill, water being the sole element thereof, and therefore saith he, +when they be heaved into the water, the water refuseth to receive them +into her bosome, (they being such Miscreants to deny their baptisme) +and suffers them to float, as the Froath on the Sea, which the water +will not recieve, but casts it up and downe till it comes to the +earthy element the shore, and there leaves it to consume. + +4. Observe these generation of Witches, if they be at any time abused +by being called Whore, Theefe, &c, by any where they live, they are +the readiest to cry and wring their hands, and shed tears in abundance +& run with full and right sorrowfull acclamations to some Justice of +the Peace, and with many teares make their complaints: but now behold +their stupidity; nature or the elements reflection from them, when +they are accused for this horrible and damnable sin of Witchcraft, +they never alter or change their countenances nor let one Teare fall. +This by the way, swimming (by able Divines whom I reverence) is +condemned for no way, and therefore of late hath, and for ever shall +be left. + + + +Quer. 11. + + _Oh! but if this torturing Witch-catcher can by all or any of + these meanes wring out a word or two of confession from any of + these stupified, ignorant, unitelligible, poore silly creatures, + (though none heare it but himselfe) he will adde and put her in + feare to confesse telling her, else she shall be hanged; but if + she doe, he will set her at liberty, and so put a word into her + mouth, and make such a silly creature confesse she knowes not + what._ + + +Answ. + +He is of a better conscience, and for your better understanding of +him, he doth thus uncase himselfe to all, add declares what +confessions (though made by a Witch against her selfe) he allowes not +of, and doth altogether account of no validity, or worthy of credence +to be given to it, and ever did so account it, and ever likewise +shall. + +1. He utterly denyes that confession of a Witch to be of any validity, +when it is drawn from her by any torture or violence whatsoever; +although after watching, walking, or swimming, diverse have suffered, +yet peradventure Magistrates with much care and diligence did solely +and fully examine them after sleepe, and consideration sufficient. + +2. He utterly denyes that confession of a Witch, which is drawn from +her by flattery, viz. _if you will confess you shall go home, you +shall not go to the Goale, nor be hanged, &c._ + +3. He utterly denyes that confession of a Witch, when she confesseth +any improbability, impossibility, as _flying in the ayre, riding on a +broom, &c._ + +4. He utterly denyes a confession of a Witch, when it is interrogated +to her, and words put into her mouth, to be of any force or effect: as +to say to a silly (yet Witch wicked enough) _you have foure Imps have +you not_? She answers affirmatively, Yes: _did they not suck you_? +Yes, saith she: _Are not their names so, and so_? Yes, saith shee; +_Did not you send such an Impe to kill my child_? Yes saith she, this +being all her confession after this manner, it is by him accompted +nothing, and he earnestly doth desire that all Magistrates and Jurors +would a little more then ever they did examine witnesses about the +interrogated confessions. + + + +Quer. 12. + + _If all those confessions be denyed, I wonder what he will make + confession, for sure it is, all these wayes have been used and + took for good confessions, and many have suffered for them, and + I know not what, he will then make confession._ + + +Answ. + +Yes, in brief he will declare what confession of a Witch is of +validity and force in his judgement, to hang a Witch: when a Witch is +first found with teats, then sequestred from her house, which is onely +to keep her old associates from her, and so by good counsell brought +into a sad condition, by understanding of the horribleness of her sin, +and the judgements threatned against her; and knowing the Devils +malice and subtile circumventions, is brought to remorse and sorrow +for complying with Satan so long, and disobeying Gods sacred Commands, +doth then desire to unfold her mind with much bitterness, and then +without any of the before-mentioned hard usages or questions put to +her, doth of her owne accord declare what was the occasion of the +Devils appearing to her, whether ignorance, pride, anger, malice, &c. +was predominant over her, she doth then declare what speech they had, +what likeness he was in, what voice be had, what familiars he sent +her, what number of spirits, what names they had, what shape they were +in, what imployment she set them about to severall persons in severall +places, (unknowne to the hearers) all which mischiefes being proved to +be done, at the same time she confessed to the same parties for the +same cause, and all effected, is testimony enough again her for all +her denyall. + + + +Quest. 13. + + _How can any possibly beleeve that the Devill and the Witch + joyning together, should have such power, as the Witches + confesse to kill such such a man, child, horse, cow, the like; + if we beleeve they can doe what they will, then we derogate from + Gods power, who for certaine limits the Devill and the Witch; + and I cannot beleeve they have any power at all._ + + +Answ. + +God suffers the Devill many times to doe much hurt, and the devill +doth play many times the deluder and impostor with these Witches, in +perswading them that they are the cause of such and such a murder +wrought by him with their consents, when and indeed neither he nor +they had any hand in it, as thus: We must needs argue, he is of a +long standing, above 6000. yeers, then he must needs be the best +Scholar in all knowledges of arts and tongues, & so have the best +skill in _Physicke_, judgment in _Physiognomie_, and knowledge of what +disease is reigning or predominant in this or that mans body, (and so +for cattell too) by reason of his long experience. This subtile +tempter knowing such a man lyable to some sudden disease, (as by +experience I have found) as _Plurisie_, _Imposthume_, &c. he resorts +to divers Witches; if they know the man, and seek to make a difference +between the Witches and the party, it may be by telling them he hath +threatned to have them very shortly searched, and so hanged for +Witches, then they all consult with _Satan_ to save themselves, and +_Satan_ stands ready prepared, with a _What will you have me doe for +you, my deare and nearest children, covenanted and compacted with me +in my hellish league, and sealed with your blood, my delicate +firebrand-darlings_. + +[Sidenote: _The Divells speech to the Witches._] + +Oh thou (say they) that at the first didst promise to save us thy +servants from any of out deadly enemies discovery, and didst promise +to avenge and flay all those, we pleased, that did offend us; Murther +that wretch suddenly who threatens the down-fall of your loyall +subjects. He then promiseth to effect it. Next newes is heard the +partie is dead, he comes to the witch, and gets a world of reverence, +credence and respect for his power and activeness, when and indeed the +disease kills the party, not the Witch, nor the Devill, (onely the +Devill knew that such a disease was predominant) and the witch +aggravates her damnation by her familiarity and consent to the Devill, +and so comes likewise in compass of the Lawes. This is Satans usuall +impostring and deluding, but not his constant course of proceeding, +for he and the witch doe mischiefe too much. But I would that +Magistrates and Jurats would a little examine witnesses when they +heare witches confess such and such a murder, whether the party had +not long time before, or at the time when the witch grew suspected, +some disease or other predominant, which might cause that issue or +effect of death. + + + +Quer. 14. + + _All that the witch-finder doth is to fleece the country of + their money, and therefore rides and goes to townes to have + imployment, and promiseth them faire promises, and it may be + doth nothing for it, and possesseth many men that they have so + many wizzards and so many witches in their towne, and so hartens + them on to entertaine him._ + + +Ans. + +You doe him a great deale of wrong in every of these particulars. For, +first, + +1. He never went to any towne or place, but they rode, writ, or sent +often for him, and were (for ought he knew) glad of him. + +2. He is a man that doth disclaime that ever he detected a witch, or +said, Thou art a witch; only after her tryall by search, and their +owne confessions, he as others may judge. + +3. Lastly, judge how he fleeceth the Country, and inriches himselfe, +by considering the vast summe he takes of every towne, he demands but +20.s. a town, & doth sometimes ride 20. miles for that, & hath no more +for all his charges thither and back again (& it may be stayes a weeke +there) and finde there 3. or 4. witches, or if it be but one, cheap +enough, and this is the great summe he takes to maintaine his Companie +with 3. horses. + + +_Judicet ullus._ diff --git a/src/main/resources/WordCountResults.txt b/src/main/resources/WordCountResults.txt new file mode 100644 index 0000000..c5e30de --- /dev/null +++ b/src/main/resources/WordCountResults.txt @@ -0,0 +1,1039 @@ + and : Occurred 177 times! + the : Occurred 160 times! + to : Occurred 111 times! + of : Occurred 98 times! + a : Occurred 68 times! + he : Occurred 63 times! + in : Occurred 61 times! + : Occurred 55 times! + they : Occurred 55 times! + for : Occurred 49 times! + them : Occurred 45 times! + her : Occurred 44 times! + that : Occurred 44 times! + by : Occurred 43 times! + be : Occurred 40 times! + it : Occurred 40 times! + their : Occurred 39 times! + or : Occurred 37 times! + any : Occurred 36 times! + is : Occurred 36 times! + not : Occurred 32 times! + so : Occurred 30 times! + have : Occurred 29 times! + as : Occurred 27 times! + but : Occurred 27 times! + from : Occurred 27 times! + witch : Occurred 27 times! + with : Occurred 25 times! + this : Occurred 24 times! + his : Occurred 23 times! + witches : Occurred 21 times! + all : Occurred 20 times! + are : Occurred 19 times! + what : Occurred 19 times! + when : Occurred 19 times! + him : Occurred 18 times! + if : Occurred 18 times! + such : Occurred 18 times! + was : Occurred 18 times! + were : Occurred 18 times! + which : Occurred 18 times! + she : Occurred 17 times! + had : Occurred 16 times! + then : Occurred 16 times! + devill : Occurred 15 times! + many : Occurred 15 times! + at : Occurred 13 times! + doth : Occurred 13 times! + these : Occurred 13 times! + c : Occurred 12 times! + on : Occurred 12 times! + will : Occurred 12 times! + did : Occurred 11 times! + i : Occurred 11 times! + quer : Occurred 11 times! + same : Occurred 11 times! + who : Occurred 11 times! + into : Occurred 10 times! + like : Occurred 10 times! + only : Occurred 10 times! + shall : Occurred 10 times! + you : Occurred 10 times! + answ : Occurred 9 times! + being : Occurred 9 times! + confession : Occurred 9 times! + imps : Occurred 9 times! + never : Occurred 9 times! + one : Occurred 9 times! + time : Occurred 9 times! + after : Occurred 8 times! + been : Occurred 8 times! + can : Occurred 8 times! + doe : Occurred 8 times! + make : Occurred 8 times! + man : Occurred 8 times! + marks : Occurred 8 times! + severall : Occurred 8 times! + about : Occurred 7 times! + ever : Occurred 7 times! + found : Occurred 7 times! + naturall : Occurred 7 times! + no : Occurred 7 times! + other : Occurred 7 times! + out : Occurred 7 times! + way : Occurred 7 times! + where : Occurred 7 times! + would : Occurred 7 times! + against : Occurred 6 times! + an : Occurred 6 times! + before : Occurred 6 times! + confessions : Occurred 6 times! + experience : Occurred 6 times! + hanged : Occurred 6 times! + hath : Occurred 6 times! + long : Occurred 6 times! + may : Occurred 6 times! + neither : Occurred 6 times! + nor : Occurred 6 times! + others : Occurred 6 times! + place : Occurred 6 times! + put : Occurred 6 times! + saith : Occurred 6 times! + there : Occurred 6 times! + though : Occurred 6 times! + women : Occurred 6 times! + ans : Occurred 5 times! + body : Occurred 5 times! + discoverer : Occurred 5 times! + discovery : Occurred 5 times! + disease : Occurred 5 times! + diverse : Occurred 5 times! + else : Occurred 5 times! + first : Occurred 5 times! + himselfe : Occurred 5 times! + how : Occurred 5 times! + kept : Occurred 5 times! + magistrates : Occurred 5 times! + more : Occurred 5 times! + much : Occurred 5 times! + names : Occurred 5 times! + night : Occurred 5 times! + reasons : Occurred 5 times! + shape : Occurred 5 times! + teats : Occurred 5 times! + towne : Occurred 5 times! + tryed : Occurred 5 times! + water : Occurred 5 times! + we : Occurred 5 times! + yes : Occurred 5 times! + yet : Occurred 5 times! + brought : Occurred 4 times! + called : Occurred 4 times! + cannot : Occurred 4 times! + cause : Occurred 4 times! + certaine : Occurred 4 times! + close : Occurred 4 times! + comes : Occurred 4 times! + confesse : Occurred 4 times! + could : Occurred 4 times! + creature : Occurred 4 times! + denyes : Occurred 4 times! + desire : Occurred 4 times! + good : Occurred 4 times! + great : Occurred 4 times! + indeed : Occurred 4 times! + judge : Occurred 4 times! + know : Occurred 4 times! + likewise : Occurred 4 times! + markes : Occurred 4 times! + miles : Occurred 4 times! + must : Occurred 4 times! + my : Occurred 4 times! + people : Occurred 4 times! + power : Occurred 4 times! + predominant : Occurred 4 times! + say : Occurred 4 times! + since : Occurred 4 times! + skill : Occurred 4 times! + sleep : Occurred 4 times! + some : Occurred 4 times! + suffered : Occurred 4 times! + thing : Occurred 4 times! + three : Occurred 4 times! + together : Occurred 4 times! + two : Occurred 4 times! + up : Occurred 4 times! + utterly : Occurred 4 times! + without : Occurred 4 times! + accord : Occurred 3 times! + againe : Occurred 3 times! + alone : Occurred 3 times! + answer : Occurred 3 times! + beleeve : Occurred 3 times! + blood : Occurred 3 times! + came : Occurred 3 times! + child : Occurred 3 times! + come : Occurred 3 times! + commonly : Occurred 3 times! + condemned : Occurred 3 times! + confess : Occurred 3 times! + confessed : Occurred 3 times! + creatures : Occurred 3 times! + declare : Occurred 3 times! + divers : Occurred 3 times! + drawn : Occurred 3 times! + effect : Occurred 3 times! + enough : Occurred 3 times! + essex : Occurred 3 times! + every : Occurred 3 times! + examine : Occurred 3 times! + familiars : Occurred 3 times! + finde : Occurred 3 times! + gained : Occurred 3 times! + go : Occurred 3 times! + hand : Occurred 3 times! + hopkins : Occurred 3 times! + house : Occurred 3 times! + immediately : Occurred 3 times! + judgements : Occurred 3 times! + kill : Occurred 3 times! + knew : Occurred 3 times! + knowing : Occurred 3 times! + let : Occurred 3 times! + little : Occurred 3 times! + matthew : Occurred 3 times! + most : Occurred 3 times! + needs : Occurred 3 times! + none : Occurred 3 times! + now : Occurred 3 times! + number : Occurred 3 times! + often : Occurred 3 times! + own : Occurred 3 times! + owne : Occurred 3 times! + party : Occurred 3 times! + perswading : Occurred 3 times! + poore : Occurred 3 times! + present : Occurred 3 times! + said : Occurred 3 times! + satan : Occurred 3 times! + search : Occurred 3 times! + searched : Occurred 3 times! + silly : Occurred 3 times! + spirit : Occurred 3 times! + spirits : Occurred 3 times! + suck : Occurred 3 times! + therefore : Occurred 3 times! + thou : Occurred 3 times! + through : Occurred 3 times! + till : Occurred 3 times! + times : Occurred 3 times! + too : Occurred 3 times! + tryall : Occurred 3 times! + upon : Occurred 3 times! + us : Occurred 3 times! + used : Occurred 3 times! + validity : Occurred 3 times! + whatsoever : Occurred 3 times! + witchfinder : Occurred 3 times! + your : Occurred 3 times! + above : Occurred 2 times! + abused : Occurred 2 times! + account : Occurred 2 times! + accused : Occurred 2 times! + again : Occurred 2 times! + another : Occurred 2 times! + assent : Occurred 2 times! + ayre : Occurred 2 times! + baptisme : Occurred 2 times! + best : Occurred 2 times! + better : Occurred 2 times! + bodies : Occurred 2 times! + childbearing : Occurred 2 times! + children : Occurred 2 times! + company : Occurred 2 times! + conscience : Occurred 2 times! + consent : Occurred 2 times! + contrary : Occurred 2 times! + couch : Occurred 2 times! + country : Occurred 2 times! + covenant : Occurred 2 times! + credence : Occurred 2 times! + cruelty : Occurred 2 times! + damnable : Occurred 2 times! + damnation : Occurred 2 times! + deny : Occurred 2 times! + denyed : Occurred 2 times! + devils : Occurred 2 times! + didst : Occurred 2 times! + do : Occurred 2 times! + downe : Occurred 2 times! + dozen : Occurred 2 times! + element : Occurred 2 times! + excressencies : Occurred 2 times! + false : Occurred 2 times! + farre : Occurred 2 times! + fat : Occurred 2 times! + find : Occurred 2 times! + flesh : Occurred 2 times! + force : Occurred 2 times! + foure : Occurred 2 times! + full : Occurred 2 times! + fully : Occurred 2 times! + gets : Occurred 2 times! + goale : Occurred 2 times! + god : Occurred 2 times! + gods : Occurred 2 times! + goe : Occurred 2 times! + halfe : Occurred 2 times! + hard : Occurred 2 times! + having : Occurred 2 times! + head : Occurred 2 times! + heard : Occurred 2 times! + heare : Occurred 2 times! + helpe : Occurred 2 times! + horrible : Occurred 2 times! + houre : Occurred 2 times! + imployment : Occurred 2 times! + interrogated : Occurred 2 times! + joyning : Occurred 2 times! + judgement : Occurred 2 times! + judges : Occurred 2 times! + judgeth : Occurred 2 times! + justice : Occurred 2 times! + keep : Occurred 2 times! + keepe : Occurred 2 times! + kingdome : Occurred 2 times! + knowes : Occurred 2 times! + live : Occurred 2 times! + lived : Occurred 2 times! + malice : Occurred 2 times! + me : Occurred 2 times! + meaning : Occurred 2 times! + men : Occurred 2 times! + mentioned : Occurred 2 times! + mind : Occurred 2 times! + mouth : Occurred 2 times! + murder : Occurred 2 times! + newes : Occurred 2 times! + next : Occurred 2 times! + nights : Occurred 2 times! + norwich : Occurred 2 times! + nothing : Occurred 2 times! + offered : Occurred 2 times! + oh : Occurred 2 times! + old : Occurred 2 times! + onely : Occurred 2 times! + open : Occurred 2 times! + ought : Occurred 2 times! + papps : Occurred 2 times! + parties : Occurred 2 times! + peradventure : Occurred 2 times! + possibly : Occurred 2 times! + proceed : Occurred 2 times! + promise : Occurred 2 times! + promiseth : Occurred 2 times! + proved : Occurred 2 times! + quarter : Occurred 2 times! + querie : Occurred 2 times! + queries : Occurred 2 times! + ready : Occurred 2 times! + reason : Occurred 2 times! + reverence : Occurred 2 times! + satans : Occurred 2 times! + save : Occurred 2 times! + see : Occurred 2 times! + selfe : Occurred 2 times! + sent : Occurred 2 times! + set : Occurred 2 times! + shapes : Occurred 2 times! + shee : Occurred 2 times! + should : Occurred 2 times! + sin : Occurred 2 times! + sit : Occurred 2 times! + sleepe : Occurred 2 times! + speech : Occurred 2 times! + subtile : Occurred 2 times! + suffers : Occurred 2 times! + summe : Occurred 2 times! + swimming : Occurred 2 times! + takes : Occurred 2 times! + telling : Occurred 2 times! + themselves : Occurred 2 times! + those : Occurred 2 times! + threatned : Occurred 2 times! + thus : Occurred 2 times! + told : Occurred 2 times! + torture : Occurred 2 times! + understanding : Occurred 2 times! + usuall : Occurred 2 times! + vanished : Occurred 2 times! + very : Occurred 2 times! + walke : Occurred 2 times! + walking : Occurred 2 times! + watchers : Occurred 2 times! + watching : Occurred 2 times! + wayes : Occurred 2 times! + went : Occurred 2 times! + whence : Occurred 2 times! + whether : Occurred 2 times! + whom : Occurred 2 times! + why : Occurred 2 times! + witchcraft : Occurred 2 times! + witnesses : Occurred 2 times! + woman : Occurred 2 times! + word : Occurred 2 times! + wring : Occurred 2 times! + able : Occurred 1 times! + ablest : Occurred 1 times! + abominable : Occurred 1 times! + abundance : Occurred 1 times! + acclamations : Occurred 1 times! + accompted : Occurred 1 times! + acquitted : Occurred 1 times! + active : Occurred 1 times! + activeness : Occurred 1 times! + add : Occurred 1 times! + adde : Occurred 1 times! + adjacent : Occurred 1 times! + adviseth : Occurred 1 times! + affirmatively : Occurred 1 times! + aggravate : Occurred 1 times! + aggravates : Occurred 1 times! + aire : Occurred 1 times! + allowable : Occurred 1 times! + allowed : Occurred 1 times! + allowes : Occurred 1 times! + alter : Occurred 1 times! + although : Occurred 1 times! + altogether : Occurred 1 times! + alwayes : Occurred 1 times! + ancient : Occurred 1 times! + angels : Occurred 1 times! + anger : Occurred 1 times! + answered : Occurred 1 times! + answers : Occurred 1 times! + antient : Occurred 1 times! + appeares : Occurred 1 times! + appearing : Occurred 1 times! + apprehended : Occurred 1 times! + approve : Occurred 1 times! + argue : Occurred 1 times! + art : Occurred 1 times! + arts : Occurred 1 times! + assize : Occurred 1 times! + assizes : Occurred 1 times! + associates : Occurred 1 times! + assume : Occurred 1 times! + attest : Occurred 1 times! + aule : Occurred 1 times! + author : Occurred 1 times! + authors : Occurred 1 times! + avenge : Occurred 1 times! + awake : Occurred 1 times! + away : Occurred 1 times! + back : Occurred 1 times! + backbone : Occurred 1 times! + bade : Occurred 1 times! + baker : Occurred 1 times! + beare : Occurred 1 times! + beat : Occurred 1 times! + because : Occurred 1 times! + beforementioned : Occurred 1 times! + beginning : Occurred 1 times! + behold : Occurred 1 times! + beholders : Occurred 1 times! + belly : Occurred 1 times! + benefit : Occurred 1 times! + beside : Occurred 1 times! + between : Occurred 1 times! + bid : Occurred 1 times! + bitterness : Occurred 1 times! + black : Occurred 1 times! + blistered : Occurred 1 times! + bloud : Occurred 1 times! + bone : Occurred 1 times! + book : Occurred 1 times! + booke : Occurred 1 times! + bosome : Occurred 1 times! + both : Occurred 1 times! + bottome : Occurred 1 times! + breefe : Occurred 1 times! + brief : Occurred 1 times! + bring : Occurred 1 times! + broad : Occurred 1 times! + broom : Occurred 1 times! + burst : Occurred 1 times! + cal : Occurred 1 times! + call : Occurred 1 times! + care : Occurred 1 times! + case : Occurred 1 times! + casts : Occurred 1 times! + cat : Occurred 1 times! + cattell : Occurred 1 times! + causes : Occurred 1 times! + chaire : Occurred 1 times! + change : Occurred 1 times! + charges : Occurred 1 times! + cheap : Occurred 1 times! + cheated : Occurred 1 times! + circumventions : Occurred 1 times! + clapt : Occurred 1 times! + cleared : Occurred 1 times! + colt : Occurred 1 times! + command : Occurred 1 times! + commands : Occurred 1 times! + commendation : Occurred 1 times! + comming : Occurred 1 times! + compact : Occurred 1 times! + compacted : Occurred 1 times! + companie : Occurred 1 times! + compass : Occurred 1 times! + complaine : Occurred 1 times! + complaints : Occurred 1 times! + complying : Occurred 1 times! + concerning : Occurred 1 times! + condensed : Occurred 1 times! + condition : Occurred 1 times! + confesseth : Occurred 1 times! + confirmes : Occurred 1 times! + consents : Occurred 1 times! + consideration : Occurred 1 times! + considering : Occurred 1 times! + constant : Occurred 1 times! + consult : Occurred 1 times! + consume : Occurred 1 times! + convict : Occurred 1 times! + corporeall : Occurred 1 times! + corruption : Occurred 1 times! + counsell : Occurred 1 times! + countenance : Occurred 1 times! + countenances : Occurred 1 times! + county : Occurred 1 times! + course : Occurred 1 times! + courses : Occurred 1 times! + covenanted : Occurred 1 times! + cow : Occurred 1 times! + create : Occurred 1 times! + crown : Occurred 1 times! + cry : Occurred 1 times! + date : Occurred 1 times! + day : Occurred 1 times! + dc : Occurred 1 times! + dead : Occurred 1 times! + deadly : Occurred 1 times! + deale : Occurred 1 times! + deare : Occurred 1 times! + death : Occurred 1 times! + deceives : Occurred 1 times! + declares : Occurred 1 times! + delicate : Occurred 1 times! + delivered : Occurred 1 times! + deluder : Occurred 1 times! + deluding : Occurred 1 times! + demands : Occurred 1 times! + demonology : Occurred 1 times! + denyall : Occurred 1 times! + derogate : Occurred 1 times! + desired : Occurred 1 times! + detected : Occurred 1 times! + devil : Occurred 1 times! + devills : Occurred 1 times! + differ : Occurred 1 times! + difference : Occurred 1 times! + diligence : Occurred 1 times! + diligent : Occurred 1 times! + direction : Occurred 1 times! + disclaime : Occurred 1 times! + discover : Occurred 1 times! + discovered : Occurred 1 times! + disgrace : Occurred 1 times! + disobeying : Occurred 1 times! + distant : Occurred 1 times! + distract : Occurred 1 times! + divells : Occurred 1 times! + divels : Occurred 1 times! + divided : Occurred 1 times! + divines : Occurred 1 times! + done : Occurred 1 times! + doore : Occurred 1 times! + downfall : Occurred 1 times! + draw : Occurred 1 times! + drawing : Occurred 1 times! + drawne : Occurred 1 times! + dry : Occurred 1 times! + due : Occurred 1 times! + durst : Occurred 1 times! + earnestly : Occurred 1 times! + earthy : Occurred 1 times! + ease : Occurred 1 times! + ebook : Occurred 1 times! + effected : Occurred 1 times! + eight : Occurred 1 times! + elemanzer : Occurred 1 times! + elements : Occurred 1 times! + emerods : Occurred 1 times! + ends : Occurred 1 times! + enemies : Occurred 1 times! + england : Occurred 1 times! + english : Occurred 1 times! + enjoyned : Occurred 1 times! + enter : Occurred 1 times! + entertaine : Occurred 1 times! + especially : Occurred 1 times! + est : Occurred 1 times! + esteemed : Occurred 1 times! + even : Occurred 1 times! + evidence : Occurred 1 times! + evil : Occurred 1 times! + excressences : Occurred 1 times! + exod : Occurred 1 times! + expecting : Occurred 1 times! + expressed : Occurred 1 times! + extended : Occurred 1 times! + extent : Occurred 1 times! + extraordinarily : Occurred 1 times! + eye : Occurred 1 times! + eyes : Occurred 1 times! + faine : Occurred 1 times! + faire : Occurred 1 times! + fall : Occurred 1 times! + familiarity : Occurred 1 times! + far : Occurred 1 times! + feare : Occurred 1 times! + feele : Occurred 1 times! + feet : Occurred 1 times! + felt : Occurred 1 times! + filling : Occurred 1 times! + filmes : Occurred 1 times! + findeth : Occurred 1 times! + finding : Occurred 1 times! + firebranddarlings : Occurred 1 times! + fitting : Occurred 1 times! + flattery : Occurred 1 times! + flay : Occurred 1 times! + fleece : Occurred 1 times! + fleeceth : Occurred 1 times! + float : Occurred 1 times! + floate : Occurred 1 times! + floated : Occurred 1 times! + flying : Occurred 1 times! + forced : Occurred 1 times! + forceth : Occurred 1 times! + former : Occurred 1 times! + formes : Occurred 1 times! + fourth : Occurred 1 times! + friday : Occurred 1 times! + froath : Occurred 1 times! + further : Occurred 1 times! + garden : Occurred 1 times! + gave : Occurred 1 times! + generation : Occurred 1 times! + give : Occurred 1 times! + given : Occurred 1 times! + glad : Occurred 1 times! + goes : Occurred 1 times! + got : Occurred 1 times! + greatest : Occurred 1 times! + greedigut : Occurred 1 times! + grew : Occurred 1 times! + greyhound : Occurred 1 times! + grizzel : Occurred 1 times! + hands : Occurred 1 times! + hang : Occurred 1 times! + happen : Occurred 1 times! + happened : Occurred 1 times! + hartens : Occurred 1 times! + hawke : Occurred 1 times! + heads : Occurred 1 times! + hear : Occurred 1 times! + hearers : Occurred 1 times! + hearing : Occurred 1 times! + heartneth : Occurred 1 times! + heaved : Occurred 1 times! + heaving : Occurred 1 times! + hee : Occurred 1 times! + hellish : Occurred 1 times! + hemerodes : Occurred 1 times! + highest : Occurred 1 times! + holt : Occurred 1 times! + home : Occurred 1 times! + honest : Occurred 1 times! + horribleness : Occurred 1 times! + horse : Occurred 1 times! + horses : Occurred 1 times! + houres : Occurred 1 times! + hundred : Occurred 1 times! + hundreds : Occurred 1 times! + hurt : Occurred 1 times! + ignorance : Occurred 1 times! + ignorant : Occurred 1 times! + impe : Occurred 1 times! + impossibility : Occurred 1 times! + impossible : Occurred 1 times! + imposthume : Occurred 1 times! + impostor : Occurred 1 times! + impostring : Occurred 1 times! + improbability : Occurred 1 times! + infancy : Occurred 1 times! + inhumane : Occurred 1 times! + inriches : Occurred 1 times! + insensible : Occurred 1 times! + instructions : Occurred 1 times! + intention : Occurred 1 times! + invent : Occurred 1 times! + issue : Occurred 1 times! + its : Occurred 1 times! + james : Occurred 1 times! + jarmara : Occurred 1 times! + joyned : Occurred 1 times! + judged : Occurred 1 times! + judging : Occurred 1 times! + judgment : Occurred 1 times! + judicet : Occurred 1 times! + jurats : Occurred 1 times! + jurors : Occurred 1 times! + justifie : Occurred 1 times! + keeping : Occurred 1 times! + kills : Occurred 1 times! + king : Occurred 1 times! + kitling : Occurred 1 times! + knowledge : Occurred 1 times! + knowledges : Occurred 1 times! + knowne : Occurred 1 times! + labour : Occurred 1 times! + laid : Occurred 1 times! + language : Occurred 1 times! + lastly : Occurred 1 times! + late : Occurred 1 times! + lately : Occurred 1 times! + law : Occurred 1 times! + lawes : Occurred 1 times! + league : Occurred 1 times! + learned : Occurred 1 times! + learning : Occurred 1 times! + leaves : Occurred 1 times! + leaving : Occurred 1 times! + left : Occurred 1 times! + legs : Occurred 1 times! + length : Occurred 1 times! + liberty : Occurred 1 times! + likely : Occurred 1 times! + likeness : Occurred 1 times! + limits : Occurred 1 times! + lives : Occurred 1 times! + living : Occurred 1 times! + longleggd : Occurred 1 times! + looks : Occurred 1 times! + loyall : Occurred 1 times! + lyable : Occurred 1 times! + lye : Occurred 1 times! + m : Occurred 1 times! + made : Occurred 1 times! + maintaine : Occurred 1 times! + maningtree : Occurred 1 times! + manner : Occurred 1 times! + mans : Occurred 1 times! + march : Occurred 1 times! + marke : Occurred 1 times! + matrons : Occurred 1 times! + matter : Occurred 1 times! + meanes : Occurred 1 times! + meanly : Occurred 1 times! + meerly : Occurred 1 times! + meeting : Occurred 1 times! + meggs : Occurred 1 times! + mens : Occurred 1 times! + met : Occurred 1 times! + midwives : Occurred 1 times! + might : Occurred 1 times! + mischiefe : Occurred 1 times! + mischiefes : Occurred 1 times! + miscreants : Occurred 1 times! + misused : Occurred 1 times! + money : Occurred 1 times! + month : Occurred 1 times! + mortall : Occurred 1 times! + mouse : Occurred 1 times! + murther : Occurred 1 times! + mutations : Occurred 1 times! + named : Occurred 1 times! + nature : Occurred 1 times! + neare : Occurred 1 times! + nearest : Occurred 1 times! + needle : Occurred 1 times! + neere : Occurred 1 times! + norfolk : Occurred 1 times! + nourishment : Occurred 1 times! + november : Occurred 1 times! + nutriment : Occurred 1 times! + oath : Occurred 1 times! + objected : Occurred 1 times! + observe : Occurred 1 times! + occasion : Occurred 1 times! + occasioned : Occurred 1 times! + offend : Occurred 1 times! + offer : Occurred 1 times! + oftentimes : Occurred 1 times! + once : Occurred 1 times! + order : Occurred 1 times! + organs : Occurred 1 times! + our : Occurred 1 times! + over : Occurred 1 times! + oxe : Occurred 1 times! + pap : Occurred 1 times! + paps : Occurred 1 times! + parish : Occurred 1 times! + part : Occurred 1 times! + particulars : Occurred 1 times! + partie : Occurred 1 times! + parts : Occurred 1 times! + peace : Occurred 1 times! + peached : Occurred 1 times! + peckin : Occurred 1 times! + persons : Occurred 1 times! + phisiognomie : Occurred 1 times! + physicke : Occurred 1 times! + physiognomie : Occurred 1 times! + piles : Occurred 1 times! + pin : Occurred 1 times! + places : Occurred 1 times! + play : Occurred 1 times! + plead : Occurred 1 times! + pleased : Occurred 1 times! + plurisie : Occurred 1 times! + polcat : Occurred 1 times! + policie : Occurred 1 times! + possesseth : Occurred 1 times! + practise : Occurred 1 times! + pray : Occurred 1 times! + prepared : Occurred 1 times! + presently : Occurred 1 times! + pride : Occurred 1 times! + prince : Occurred 1 times! + private : Occurred 1 times! + probatum : Occurred 1 times! + proceeded : Occurred 1 times! + proceeding : Occurred 1 times! + profound : Occurred 1 times! + promises : Occurred 1 times! + proper : Occurred 1 times! + provided : Occurred 1 times! + published : Occurred 1 times! + pyewacket : Occurred 1 times! + quest : Occurred 1 times! + questions : Occurred 1 times! + quiet : Occurred 1 times! + rabbet : Occurred 1 times! + rat : Occurred 1 times! + readiest : Occurred 1 times! + reading : Occurred 1 times! + reall : Occurred 1 times! + really : Occurred 1 times! + receive : Occurred 1 times! + recieve : Occurred 1 times! + reflect : Occurred 1 times! + reflection : Occurred 1 times! + refuseth : Occurred 1 times! + reigning : Occurred 1 times! + release : Occurred 1 times! + remorse : Occurred 1 times! + repairs : Occurred 1 times! + resorts : Occurred 1 times! + respect : Occurred 1 times! + rest : Occurred 1 times! + ride : Occurred 1 times! + rides : Occurred 1 times! + riding : Occurred 1 times! + right : Occurred 1 times! + rightly : Occurred 1 times! + rode : Occurred 1 times! + room : Occurred 1 times! + roome : Occurred 1 times! + rule : Occurred 1 times! + run : Occurred 1 times! + rusticall : Occurred 1 times! + s : Occurred 1 times! + sack : Occurred 1 times! + sacred : Occurred 1 times! + sacrifices : Occurred 1 times! + sad : Occurred 1 times! + safest : Occurred 1 times! + satisfied : Occurred 1 times! + scareth : Occurred 1 times! + scholar : Occurred 1 times! + sea : Occurred 1 times! + sealed : Occurred 1 times! + searches : Occurred 1 times! + sect : Occurred 1 times! + seeing : Occurred 1 times! + seek : Occurred 1 times! + seekes : Occurred 1 times! + seen : Occurred 1 times! + seldome : Occurred 1 times! + send : Occurred 1 times! + sending : Occurred 1 times! + sequestred : Occurred 1 times! + servants : Occurred 1 times! + serve : Occurred 1 times! + served : Occurred 1 times! + seven : Occurred 1 times! + shalt : Occurred 1 times! + shed : Occurred 1 times! + shew : Occurred 1 times! + shore : Occurred 1 times! + shortly : Occurred 1 times! + sidenote : Occurred 1 times! + sinke : Occurred 1 times! + six : Occurred 1 times! + skilfulest : Occurred 1 times! + skilfull : Occurred 1 times! + skinnes : Occurred 1 times! + sole : Occurred 1 times! + solely : Occurred 1 times! + solemne : Occurred 1 times! + sometimes : Occurred 1 times! + sooner : Occurred 1 times! + sorcerer : Occurred 1 times! + sorrow : Occurred 1 times! + sorrowfull : Occurred 1 times! + spaniel : Occurred 1 times! + speake : Occurred 1 times! + speakes : Occurred 1 times! + speaking : Occurred 1 times! + spoiled : Occurred 1 times! + spoke : Occurred 1 times! + stand : Occurred 1 times! + standing : Occurred 1 times! + stands : Occurred 1 times! + stayes : Occurred 1 times! + stubborne : Occurred 1 times! + stupidity : Occurred 1 times! + stupified : Occurred 1 times! + subject : Occurred 1 times! + subjects : Occurred 1 times! + subsist : Occurred 1 times! + substantiall : Occurred 1 times! + suckle : Occurred 1 times! + suckt : Occurred 1 times! + sudden : Occurred 1 times! + suddenly : Occurred 1 times! + suffer : Occurred 1 times! + sufficient : Occurred 1 times! + sufficiently : Occurred 1 times! + suffolke : Occurred 1 times! + sugar : Occurred 1 times! + sunk : Occurred 1 times! + sure : Occurred 1 times! + surest : Occurred 1 times! + suspected : Occurred 1 times! + suspitious : Occurred 1 times! + sustentation : Occurred 1 times! + sworne : Occurred 1 times! + taile : Occurred 1 times! + tame : Occurred 1 times! + teare : Occurred 1 times! + teares : Occurred 1 times! + tears : Occurred 1 times! + teat : Occurred 1 times! + tell : Occurred 1 times! + tells : Occurred 1 times! + tels : Occurred 1 times! + tempter : Occurred 1 times! + ten : Occurred 1 times! + tender : Occurred 1 times! + tendered : Occurred 1 times! + testimony : Occurred 1 times! + theefe : Occurred 1 times! + thereabouts : Occurred 1 times! + thereof : Occurred 1 times! + thereupon : Occurred 1 times! + thickned : Occurred 1 times! + thither : Occurred 1 times! + thought : Occurred 1 times! + threatens : Occurred 1 times! + thrust : Occurred 1 times! + thy : Occurred 1 times! + title : Occurred 1 times! + tokens : Occurred 1 times! + tom : Occurred 1 times! + tongues : Occurred 1 times! + took : Occurred 1 times! + tortured : Occurred 1 times! + tortures : Occurred 1 times! + torturing : Occurred 1 times! + town : Occurred 1 times! + townes : Occurred 1 times! + towns : Occurred 1 times! + transformed : Occurred 1 times! + travelled : Occurred 1 times! + treacheries : Occurred 1 times! + troubled : Occurred 1 times! + true : Occurred 1 times! + tryals : Occurred 1 times! + trying : Occurred 1 times! + turnes : Occurred 1 times! + tying : Occurred 1 times! + ullus : Occurred 1 times! + uncase : Occurred 1 times! + unfold : Occurred 1 times! + unitelligible : Occurred 1 times! + unknowne : Occurred 1 times! + unlawfull : Occurred 1 times! + unmercifull : Occurred 1 times! + unreasonable : Occurred 1 times! + untrue : Occurred 1 times! + unused : Occurred 1 times! + unusualnes : Occurred 1 times! + usages : Occurred 1 times! + use : Occurred 1 times! + useth : Occurred 1 times! + variations : Occurred 1 times! + vast : Occurred 1 times! + veine : Occurred 1 times! + view : Occurred 1 times! + vinegar : Occurred 1 times! + violence : Occurred 1 times! + visible : Occurred 1 times! + viz : Occurred 1 times! + voice : Occurred 1 times! + waking : Occurred 1 times! + walked : Occurred 1 times! + want : Occurred 1 times! + wants : Occurred 1 times! + watched : Occurred 1 times! + weeke : Occurred 1 times! + weeks : Occurred 1 times! + well : Occurred 1 times! + whereas : Occurred 1 times! + whereby : Occurred 1 times! + wherein : Occurred 1 times! + whereof : Occurred 1 times! + white : Occurred 1 times! + whole : Occurred 1 times! + whore : Occurred 1 times! + wicked : Occurred 1 times! + wilde : Occurred 1 times! + wills : Occurred 1 times! + witchcatcher : Occurred 1 times! + withall : Occurred 1 times! + within : Occurred 1 times! + wizzard : Occurred 1 times! + wizzards : Occurred 1 times! + wonder : Occurred 1 times! + words : Occurred 1 times! + working : Occurred 1 times! + world : Occurred 1 times! + worthy : Occurred 1 times! + wretch : Occurred 1 times! + wretts : Occurred 1 times! + writ : Occurred 1 times! + written : Occurred 1 times! + wrong : Occurred 1 times! + wrought : Occurred 1 times! + xlvii : Occurred 1 times! + yeare : Occurred 1 times! + yeares : Occurred 1 times! + yeeres : Occurred 1 times! + yeers : Occurred 1 times! + young : Occurred 1 times! diff --git a/src/main/resources/someTextFile.txt b/src/main/resources/someTextFile.txt index e69de29..0a04f90 100644 --- a/src/main/resources/someTextFile.txt +++ b/src/main/resources/someTextFile.txt @@ -0,0 +1,2 @@ +Sunday! Sunday! Sunday! +Kids seats are still just five bucks. \ No newline at end of file diff --git a/src/test/java/io/zipcoder/ParenCheckerTest.java b/src/test/java/io/zipcoder/ParenCheckerTest.java index 76aa3b6..8208dc2 100644 --- a/src/test/java/io/zipcoder/ParenCheckerTest.java +++ b/src/test/java/io/zipcoder/ParenCheckerTest.java @@ -3,6 +3,48 @@ import org.junit.Assert; import org.junit.Test; +import java.util.Stack; + public class ParenCheckerTest { + @Test + public void testParenPairTrue() { + //Given + ParenChecker parenTest = new ParenChecker(); + String string1 = "I can't fight (this feeling anymore)."; + //When + + //Then + Assert.assertTrue(parenTest.parenPair(string1)); + } + + @Test + public void testParenPairFalse() { + //Given + ParenChecker parenTest = new ParenChecker(); + String string2 = "I've (forgotten) what I( started (fighting for)."; + //When + + //Then + Assert.assertFalse(parenTest.parenPair(string2)); + } + + @Test + public void testForEachOpeningAClosingTrue() { + // Given + ParenChecker parenTest = new ParenChecker(); + String string2 = "I have 'no' never spotted a [dougie] so fresh \"To death\" that even a map."; + + Assert.assertTrue(parenTest.forEachOpeningAClosing(string2)); + } + + @Test + public void testForEachOpeningAClosingFalse() { + // Given + ParenChecker parenTest = new ParenChecker(); + String string2 = "I ('ksd that'll do) ,<<"; + Assert.assertFalse(parenTest.forEachOpeningAClosing(string2)); + } + + } \ No newline at end of file diff --git a/src/test/java/io/zipcoder/WCTest.java b/src/test/java/io/zipcoder/WCTest.java index 895e831..9ec1ce0 100644 --- a/src/test/java/io/zipcoder/WCTest.java +++ b/src/test/java/io/zipcoder/WCTest.java @@ -3,9 +3,61 @@ import org.junit.Assert; import org.junit.Test; -import java.util.ArrayList; -import java.util.Arrays; +import java.util.*; public class WCTest { + @Test + public void wordCollectorTest() { + + WC wcTest = new WC(WC.class.getResource("/someTextFile.txt").getFile()); + Map expected = new LinkedHashMap(); + expected.put("sunday", 3); + expected.put("kids", 1); + expected.put("seats", 1); + expected.put("are", 1); + expected.put("still", 1); + expected.put("just", 1); + expected.put("five", 1); + expected.put("bucks", 1); + + Map actual = wcTest.wordCollector(); + Assert.assertEquals(expected, actual); + } + + @Test + public void wordCollectorTestSort() { + + WC wcTest = new WC(WC.class.getResource("/someTextFile.txt").getFile()); + Map expected = new LinkedHashMap(); + expected.put("sunday", 3); + expected.put("are", 1); + expected.put("bucks", 1); + expected.put("five", 1); + expected.put("kids", 1); + expected.put("just", 1); + expected.put("seats", 1); + expected.put("still", 1); + + Map actual = wcTest.sortWordCollector(); + Assert.assertEquals(expected, actual); + } + + + @Test + public void wordCollectorPrintTest() { + WC wcTest = new WC(WC.class.getResource("/someTextFile.txt").getFile()); + String expected = " sunday : Occurred 3 times!\n" + + " kids : Occurred 1 times!\n" + + " seats : Occurred 1 times!\n" + + " are : Occurred 1 times!\n" + + " still : Occurred 1 times!\n" + + " just : Occurred 1 times!\n" + + " five : Occurred 1 times!\n" + + " bucks : Occurred 1 times!\n"; + Assert.assertEquals(expected, wcTest.printSortedMap()); + } + + + } \ No newline at end of file