alig 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/alig.rb +120 -115
- data/lib/alig/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZWM1YWYzYmQ1MzIxZjYxOTVmOThlOTVjYmVjOWU0OGNkMGQyNDgxNA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NzhjZTVhOTdlYzVjZjNlYTNjZjI5ZmMxYzhhY2M1ZjQ4MjQ3MDVjYw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YjRhM2JlYjY3MWRiZWY1ZDZmMDc2ZGVmMzNhYTkwZTk5N2Q0Mzg3MjNlNDE1
|
10
|
+
MjA1NjVlNzI1ZWQ5NTQ0NTI4ZTJhYjVjYzgxOTRmMWZiZGE5MzNjMjRhOTQ3
|
11
|
+
MDFjNjUxMWNkOTZhZmFlMDI5ZjllZTBjZGE4ODY0ODEyZTcyNGM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZDAyMGFmZTkwMzNiYzZiZmI1ZWY0MmRiMTY3MWQzMGExOTQxZjEwNjc1YWEw
|
14
|
+
YTI0MDkwNDAyMTkwN2M0ZDU5ZWZiNGI3Nzk1NWFkNzE0ZWI5N2IxZmY4MWY0
|
15
|
+
MDk3M2U1MWI4M2Y2OWQxNzRlNDA3MzdhYzViOTcyYmQ4MDE2OGI=
|
data/lib/alig.rb
CHANGED
@@ -1,7 +1,120 @@
|
|
1
1
|
require "alig/version"
|
2
2
|
|
3
3
|
module Alig
|
4
|
-
|
4
|
+
PHRASE_TRANSLATIONS = {
|
5
|
+
"jerk off" => "crack one off",
|
6
|
+
"haven't" => "ain't",
|
7
|
+
"hasn't" => "ain't",
|
8
|
+
"have not" => "ain't",
|
9
|
+
"has not" => "ain't",
|
10
|
+
"have never" => "ain't never",
|
11
|
+
"has never" => "ain't never",
|
12
|
+
"am gay" => "like it up both pipes",
|
13
|
+
"is gay" => "likes it up both pipes",
|
14
|
+
"well done" => "big up",
|
15
|
+
"pleased to meet you" => "big up to you",
|
16
|
+
"have sex" => "get jiggy",
|
17
|
+
"has sex" => "bones",
|
18
|
+
"having sex" => "riding the punanni",
|
19
|
+
"listen to me" => "hear me now",
|
20
|
+
"isnt it" => "innit",
|
21
|
+
"isn't it" => "innit",
|
22
|
+
"that's right" => "innit",
|
23
|
+
"what's up" => "whaddup",
|
24
|
+
"had" => "did have",
|
25
|
+
"i heard" => "me crew told me",
|
26
|
+
"i hear" => "word on da street",
|
27
|
+
"girl friend" => "bitch",
|
28
|
+
"i want" => "me would dig",
|
29
|
+
"i like" => "me would dig",
|
30
|
+
"that's correct" => "innit",
|
31
|
+
"i live in" => "me turf is",
|
32
|
+
"i'm from" => "me turf is",
|
33
|
+
"a ride" => "fit",
|
34
|
+
"boy friend" => "main man",
|
35
|
+
"disc jockey" => "selecta",
|
36
|
+
"disk jockey" => "selecta",
|
37
|
+
"are you gay" => "do you like it up both pipes",
|
38
|
+
"backdoor burgler" => "batty boy",
|
39
|
+
"im from" => "me turf is",
|
40
|
+
"i come from" => "me turf is",
|
41
|
+
"make love" => "bone",
|
42
|
+
"what's up" => "wussup",
|
43
|
+
"whats up" => "wassup",
|
44
|
+
"good looking" => "fit",
|
45
|
+
"a joint" => "some erbal remedy",
|
46
|
+
"a spliff" => "some erbal remedy",
|
47
|
+
"a bent" => "a batty boy",
|
48
|
+
"tonight" => "a bit later on",
|
49
|
+
"smoking" => "toking",
|
50
|
+
"smokes" => "tokes",
|
51
|
+
"working" => "hangin",
|
52
|
+
"meeting" => "hangin",
|
53
|
+
"colleagues" => "crew",
|
54
|
+
"a smoke" => "a bit of erbal remedy",
|
55
|
+
"pissed off" => "aggro",
|
56
|
+
"im going home" => "me is heading westside",
|
57
|
+
"i'm going home" => "me is heading westside",
|
58
|
+
"my home" => "westside",
|
59
|
+
"anal sex" => "batty boning",
|
60
|
+
"fuck off" => "chill",
|
61
|
+
"shut up" => "chill",
|
62
|
+
"go home" => "head westside",
|
63
|
+
"the hood" => "staines",
|
64
|
+
"what are you talking about" => "wot is yous bangin on about",
|
65
|
+
"i don't know" => "me don't have a clue",
|
66
|
+
"night club" => "cukabilly",
|
67
|
+
"disco" => "cukabilly",
|
68
|
+
"sinn fein" => "muslims",
|
69
|
+
"first class" => "the most bestest",
|
70
|
+
"class a" => "the most bestest",
|
71
|
+
"blow job" => "sweet mr biggy lovin",
|
72
|
+
"i like you" => "would you dig to get jiggy wiv mr biggy",
|
73
|
+
"i love you" => "would you dig to get jiggy wiv mr biggy",
|
74
|
+
"i fancy you" => "would you dig to get jiggy wiv mr biggy",
|
75
|
+
"like to have sex" => "dig to get jiggy wiv mr biggy",
|
76
|
+
"how are you feeling" => "is you wicked",
|
77
|
+
"make love" => "ride the punanni",
|
78
|
+
"my bed" => "the sack",
|
79
|
+
"big one" => "mr biggy",
|
80
|
+
"where do you live" => "where is yous turf",
|
81
|
+
"good looking" => "fit",
|
82
|
+
"going home" => "going westside",
|
83
|
+
"making love" => "riding the punanni",
|
84
|
+
"made love" => "boned",
|
85
|
+
"west side" => "me turf",
|
86
|
+
"a break" => "a chill pill",
|
87
|
+
"what time is it" => "keep it real and tell me da time",
|
88
|
+
"channel 4" => "telly",
|
89
|
+
"laid" => "jiggy",
|
90
|
+
"how do you do" => "is you wicked",
|
91
|
+
"how are you" => "is you wicked",
|
92
|
+
"how's it going" => "is you wicked",
|
93
|
+
"give me a ring" => "gimme a shout",
|
94
|
+
"i find you" => "i fink you is",
|
95
|
+
"Where do I live" => "where is me turf",
|
96
|
+
"what plans" => "what's the deal",
|
97
|
+
"oral sex" => "drinking from the bearded cup",
|
98
|
+
"have fun" => "chill",
|
99
|
+
"a pay rise" => "mo mula",
|
100
|
+
"are you going out" => "is you goin out to check some bitches",
|
101
|
+
"to the pub" => "down the boozer",
|
102
|
+
"looking at" => "checkin out",
|
103
|
+
"i feel like" => "i fink i will be",
|
104
|
+
"he feels like" => "he finks he will be",
|
105
|
+
"she feels like" => "she finks she will be",
|
106
|
+
"that's not right" => "dat ain't right",
|
107
|
+
"slag off" => "dis",
|
108
|
+
"slags off" => "disses",
|
109
|
+
"slagged off" => "dissed",
|
110
|
+
"have a piss" => "do a piss",
|
111
|
+
"has a piss" => "does a piss",
|
112
|
+
"had a piss" => "did a piss",
|
113
|
+
"having a piss" => "doing a piss",
|
114
|
+
"slagging off" => "dissing",
|
115
|
+
"welcome to" => "hear me now, dis is"
|
116
|
+
}
|
117
|
+
WORD_TRANSLATIONS = {
|
5
118
|
"absent" => "not in da house",
|
6
119
|
"absolutely" => "for real",
|
7
120
|
"actual" => "hactual",
|
@@ -597,123 +710,15 @@ module Alig
|
|
597
710
|
"you" => "yous",
|
598
711
|
"you're" => "yous is",
|
599
712
|
"youth" => "youf",
|
600
|
-
"yugoslavia" => "Newgoslavia"
|
601
|
-
"jerk off" => "crack one off",
|
602
|
-
"haven't" => "ain't",
|
603
|
-
"hasn't" => "ain't",
|
604
|
-
"have not" => "ain't",
|
605
|
-
"has not" => "ain't",
|
606
|
-
"have never" => "ain't never",
|
607
|
-
"has never" => "ain't never",
|
608
|
-
"am gay" => "like it up both pipes",
|
609
|
-
"is gay" => "likes it up both pipes",
|
610
|
-
"well done" => "big up",
|
611
|
-
"pleased to meet you" => "big up to you",
|
612
|
-
"have sex" => "get jiggy",
|
613
|
-
"has sex" => "bones",
|
614
|
-
"having sex" => "riding the punanni",
|
615
|
-
"listen to me" => "hear me now",
|
616
|
-
"isnt it" => "innit",
|
617
|
-
"isn't it" => "innit",
|
618
|
-
"that's right" => "innit",
|
619
|
-
"what's up" => "whaddup",
|
620
|
-
"had" => "did have",
|
621
|
-
"i heard" => "me crew told me",
|
622
|
-
"i hear" => "word on da street",
|
623
|
-
"girl friend" => "bitch",
|
624
|
-
"i want" => "me would dig",
|
625
|
-
"i like" => "me would dig",
|
626
|
-
"that's correct" => "innit",
|
627
|
-
"i live in" => "me turf is",
|
628
|
-
"i'm from" => "me turf is",
|
629
|
-
"a ride" => "fit",
|
630
|
-
"boy friend" => "main man",
|
631
|
-
"disc jockey" => "selecta",
|
632
|
-
"disk jockey" => "selecta",
|
633
|
-
"are you gay" => "do you like it up both pipes",
|
634
|
-
"backdoor burgler" => "batty boy",
|
635
|
-
"im from" => "me turf is",
|
636
|
-
"i come from" => "me turf is",
|
637
|
-
"make love" => "bone",
|
638
|
-
"what's up" => "wussup",
|
639
|
-
"whats up" => "wassup",
|
640
|
-
"good looking" => "fit",
|
641
|
-
"a joint" => "some erbal remedy",
|
642
|
-
"a spliff" => "some erbal remedy",
|
643
|
-
"a bent" => "a batty boy",
|
644
|
-
"tonight" => "a bit later on",
|
645
|
-
"smoking" => "toking",
|
646
|
-
"smokes" => "tokes",
|
647
|
-
"working" => "hangin",
|
648
|
-
"meeting" => "hangin",
|
649
|
-
"colleagues" => "crew",
|
650
|
-
"a smoke" => "a bit of erbal remedy",
|
651
|
-
"pissed off" => "aggro",
|
652
|
-
"im going home" => "me is heading westside",
|
653
|
-
"i'm going home" => "me is heading westside",
|
654
|
-
"my home" => "westside",
|
655
|
-
"anal sex" => "batty boning",
|
656
|
-
"fuck off" => "chill",
|
657
|
-
"shut up" => "chill",
|
658
|
-
"go home" => "head westside",
|
659
|
-
"the hood" => "staines",
|
660
|
-
"what are you talking about" => "wot is yous bangin on about",
|
661
|
-
"i don't know" => "me don't have a clue",
|
662
|
-
"night club" => "cukabilly",
|
663
|
-
"disco" => "cukabilly",
|
664
|
-
"sinn fein" => "muslims",
|
665
|
-
"first class" => "the most bestest",
|
666
|
-
"class a" => "the most bestest",
|
667
|
-
"blow job" => "sweet mr biggy lovin",
|
668
|
-
"i like you" => "would you dig to get jiggy wiv mr biggy",
|
669
|
-
"i love you" => "would you dig to get jiggy wiv mr biggy",
|
670
|
-
"i fancy you" => "would you dig to get jiggy wiv mr biggy",
|
671
|
-
"like to have sex" => "dig to get jiggy wiv mr biggy",
|
672
|
-
"how are you feeling" => "is you wicked",
|
673
|
-
"make love" => "ride the punanni",
|
674
|
-
"my bed" => "the sack",
|
675
|
-
"big one" => "mr biggy",
|
676
|
-
"where do you live" => "where is yous turf",
|
677
|
-
"good looking" => "fit",
|
678
|
-
"going home" => "going westside",
|
679
|
-
"making love" => "riding the punanni",
|
680
|
-
"made love" => "boned",
|
681
|
-
"west side" => "me turf",
|
682
|
-
"a break" => "a chill pill",
|
683
|
-
"what time is it" => "keep it real and tell me da time",
|
684
|
-
"channel 4" => "telly",
|
685
|
-
"laid" => "jiggy",
|
686
|
-
"how do you do" => "is you wicked",
|
687
|
-
"how are you" => "is you wicked",
|
688
|
-
"how's it going" => "is you wicked",
|
689
|
-
"give me a ring" => "gimme a shout",
|
690
|
-
"i find you" => "i fink you is",
|
691
|
-
"Where do I live" => "where is me turf",
|
692
|
-
"what plans" => "what's the deal",
|
693
|
-
"oral sex" => "drinking from the bearded cup",
|
694
|
-
"have fun" => "chill",
|
695
|
-
"a pay rise" => "mo mula",
|
696
|
-
"are you going out" => "is you goin out to check some bitches",
|
697
|
-
"to the pub" => "down the boozer",
|
698
|
-
"looking at" => "checkin out",
|
699
|
-
"i feel like" => "i fink i will be",
|
700
|
-
"he feels like" => "he finks he will be",
|
701
|
-
"she feels like" => "she finks she will be",
|
702
|
-
"that's not right" => "dat ain't right",
|
703
|
-
"slag off" => "dis",
|
704
|
-
"slags off" => "disses",
|
705
|
-
"slagged off" => "dissed",
|
706
|
-
"have a piss" => "do a piss",
|
707
|
-
"has a piss" => "does a piss",
|
708
|
-
"had a piss" => "did a piss",
|
709
|
-
"having a piss" => "doing a piss",
|
710
|
-
"slagging off" => "dissing",
|
711
|
-
"welcome to" => "hear me now, dis is"
|
713
|
+
"yugoslavia" => "Newgoslavia"
|
712
714
|
}
|
713
715
|
|
714
716
|
def self.translate(sentence)
|
715
|
-
|
716
|
-
sentence.gsub!(phrase
|
717
|
+
PHRASE_TRANSLATIONS.each_pair do |phrase, translation|
|
718
|
+
sentence.gsub!(/\b#{phrase}\b/, translation)
|
719
|
+
end
|
720
|
+
WORD_TRANSLATIONS.each_pair do |word, translation|
|
721
|
+
sentence.gsub!(/\b#{word}\b/, translation)
|
717
722
|
end
|
718
723
|
sentence
|
719
724
|
end
|
data/lib/alig/version.rb
CHANGED