New-Pattern Coding: Sentence Codes, Word Rules and Conditions

New-pattern coding goes beyond shifting the letters of one word. You are given whole sentences and their codes, a rule that builds a code from a word's letters, or a table of letter codes with conditions, and you must code or decode something new. Bank exams such as IBPS PO use these in sets of three to five questions, and GAT, NTS and SSC papers include the sentence type regularly.

Asked in: GAT, HAT, NTS, ISSB, SSC CGL, IBPS PO, CAT

Sentence code tables

A sentence and its code contain the same number of items, but the code words are usually jumbled, so position does not tell you which code belongs to which word.

To find a word's code, take two sentences that share the word and pick the code they share. If two sentences share exactly one word, they share exactly one code, and those two belong together.

Elimination and leftover codes

Once some codes are known, cross them out of a sentence's code. If only one word and one code remain, they match. This is how you find words that appear in just one sentence.

Work outwards from the word that appears most often; it usually unlocks everything else.

When a code cannot be determined

If two words appear only in the same sentence (and nowhere else), their two codes can be swapped without breaking any clue. Then neither code can be fixed, and the correct answer is 'cannot be determined'.

A question asking what 'could be' the code accepts any arrangement consistent with the clues. A new word not seen before can take a fresh code, but never a code already owned by another word.

Word-rule codes (new pattern)

Here each word is turned into its code by a rule, for example: the letter after the first letter, then the number of letters, then the letter before the last letter. Market becomes n6s.

Match codes to words first (shared words, or the number in the code against word lengths), then test a rule on two or three words before applying it. Common ingredients are the next or previous letter, the opposite letter, the number of letters or vowels, and the position of the word in the sentence.

Letter-digit tables with conditions

A table gives each letter a code, and conditions modify the codes when the first or last letter is a vowel or consonant. Check the first and last letters, decide which condition fits, and apply only that one.

Most errors come from swapping codes when the condition says to copy, or from applying a condition when none fits. If none fits, code letter by letter from the table.

Shifts that depend on a condition

Some codes move vowels and consonants by different amounts, or treat even-length and odd-length words differently. Line up two examples letter by letter and note the shift for each type of letter before generalising.

Solved examples

  1. In a code language, 'Hamza likes mangoes' is written as 'zo pi ta', 'mangoes are sweet' is written as 'ta ru ke' and 'sweet ripe mangoes' is written as 'ke ta mi'. Find the codes for 'sweet' and 'ripe'. Can the code for 'Hamza' be found?
    1. 'mangoes' is in all three sentences, and ta is the only code in all three, so mangoes = ta.
    2. 'sweet' is in the second and third sentences; their common codes are ta and ke. ta is taken, so sweet = ke.
    3. In the third sentence, removing ta and ke leaves mi, so ripe = mi. Similarly, are = ru.
    4. In the first sentence, 'Hamza likes' share zo and pi, and neither word appears anywhere else. So Hamza's code cannot be determined.
    Answer: sweet = ke, ripe = mi; Hamza cannot be determined (zo or pi)
  2. Using the same code ('Hamza likes mangoes' = 'zo pi ta', 'mangoes are sweet' = 'ta ru ke', 'sweet ripe mangoes' = 'ke ta mi'), which could be the code for 'Hamza likes sweet'?
    1. Hamza and likes together take zo and pi, in an unknown order, and sweet = ke.
    2. So the code must contain zo, pi and ke in some order, such as 'pi ke zo'.
    3. A group containing ta (mangoes), ru (are) or mi (ripe) would bring in a word that is not in the phrase.
    Answer: Any arrangement of zo, pi and ke, for example 'pi ke zo'
  3. In a code language, 'Neha writes poems' = 'gu la so', 'poems are short' = 'so ve bi', 'Neha reads stories' = 'la ka di' and 'short stories' = 'bi ka'. What is the code for 'reads'?
    1. Neha is common to the first and third sentences, with common code la. poems is common to the first two, with common code so.
    2. 'short stories' = 'bi ka'. short also appears in the second sentence, whose codes include bi, so short = bi and stories = ka.
    3. In 'Neha reads stories' = 'la ka di', remove la (Neha) and ka (stories); the leftover di is 'reads'.
    Answer: di
  4. In a code language, 'shop opens early' is written as 'f5x t4o p5r' and 'market opens today' is written as 'u5x p5r n6s'. Find the rule, and code 'garden'.
    1. 'opens' is the only word in both sentences, and p5r is the only code in both, so opens = p5r.
    2. Test a rule on opens: the letter after o is p, opens has 5 letters, and the letter before its last letter s is r. That gives p5r.
    3. Check it on another word: shop gives t (after s), 4, o (before p), which is t4o, and market gives n, 6, s, which is n6s. Both appear in the codes, so the rule holds.
    4. For garden: the letter after g is h, it has 6 letters, and the letter before n is m.
    Answer: h6m (letter after the first letter, number of letters, letter before the last letter)
  5. Letters and codes: A = 7, B = @, D = 3, E = %, G = 6, H = 9, K = #, M = 2, P = &, R = 5, T = 4, U = 8. Conditions: (i) if the first letter is a vowel and the last a consonant, their codes are interchanged; (ii) if both are consonants, the first is given the code of the last; (iii) if the first is a consonant and the last a vowel, both are coded as 0. Code AMKTBP and BRUDGA.
    1. AMKTBP: A is a vowel and P is a consonant, so rule (i) applies. The plain code is 7 2 # 4 @ &; swapping the ends gives &2#4@7.
    2. BRUDGA: B is a consonant and A is a vowel, so rule (iii) applies and both ends become 0. The middle letters R, U, D, G give 5, 8, 3, 6.
    3. So BRUDGA is 058360.
    Answer: AMKTBP = &2#4@7, BRUDGA = 058360
  6. In a certain code, TEMPLE is written as SFLOKF and RIVER as QJUFQ. How is PAKISTAN written?
    1. Compare position by position: T to S (back 1), E to F (forward 1), M to L (back 1). R to Q, I to J, V to U.
    2. So vowels move one place forward and consonants one place back.
    3. PAKISTAN: P to O, A to B, K to J, I to J, S to R, T to S, A to B, N to M.
    Answer: OBJJRSBM

Exam shortcuts

Common mistakes

Practice MCQs

  1. In a code language, 'Ravi plays cricket' is written as 'ta ko ni', 'cricket is fun' is written as 'ni su re', 'fun and games' is written as 're bo la' and 'Ravi and Amna' is written as 'la ko pi'. What is the code for 'fun'?
    A) ni
    B) re
    C) la
    D) bo
    Answer: B) re — 'fun' appears in 'cricket is fun' (ni su re) and 'fun and games' (re bo la). The only code common to both is re. ni belongs to 'cricket' (shared by the first two sentences), la belongs to 'and' (shared by the third and fourth), and bo is left over for 'games'.
  2. In a code language, 'Ravi plays cricket' is written as 'ta ko ni', 'cricket is fun' is written as 'ni su re', 'fun and games' is written as 're bo la' and 'Ravi and Amna' is written as 'la ko pi'. Which word is coded as 'pi'?
    A) Ravi
    B) and
    C) games
    D) Amna
    Answer: D) Amna — In 'Ravi and Amna' (la ko pi), Ravi is ko (common with 'Ravi plays cricket') and 'and' is la (common with 'fun and games'). The remaining code pi must be Amna. 'games' is bo, found from the third sentence after removing re and la.
  3. In a code language, 'tea is hot' is written as 'mo ka ri', 'coffee is cold' is written as 'ka zu po' and 'hot milk please' is written as 'ri la de'. What is the code for 'cold'?
    A) Cannot be determined
    B) zu
    C) po
    D) ka
    Answer: A) Cannot be determined — 'is' is ka (common to the first two sentences), so 'coffee cold' share zu and po. 'cold' appears in no other sentence, so it could be either zu or po; nothing separates it from 'coffee'. Choosing zu or po is a guess, and ka is already taken by 'is'.
  4. In a code language, 'tea is hot' is written as 'mo ka ri', 'coffee is cold' is written as 'ka zu po' and 'hot milk please' is written as 'ri la de'. Which of the following could be the code for 'hot coffee'?
    A) ri ka
    B) mo zu
    C) ri zu
    D) la ri
    Answer: C) ri zu — 'hot' is ri (common to the first and third sentences). 'coffee' is either zu or po, so 'ri zu' is possible. 'ri ka' uses ka, which is 'is'; 'mo zu' uses mo, which is 'tea', not 'hot'; and 'la ri' uses la, which belongs to 'milk' or 'please'.
  5. In a code language, 'Ali reads good books' is written as 'fa ne ro gi', 'good books are rare' is written as 'gi tu fa ve', 'Priya reads rare novels' is written as 'ne ve sa lo' and 'novels are good' is written as 'lo tu gi'. What is the code for 'rare'?
    A) tu
    B) sa
    C) ve
    D) gi
    Answer: C) ve — 'good books' appear in the first two sentences, sharing fa and gi; 'good' is also in 'novels are good', so good = gi and books = fa. 'are' is common to the second and fourth sentences, giving tu. That leaves ve for 'rare' in 'good books are rare', and ve is indeed shared with 'Priya reads rare novels'. sa is Priya and gi is good.
  6. In a code language, 'Ali reads good books' is written as 'fa ne ro gi', 'good books are rare' is written as 'gi tu fa ve', 'Priya reads rare novels' is written as 'ne ve sa lo' and 'novels are good' is written as 'lo tu gi'. What is the code for 'Priya'?
    A) sa
    B) ne
    C) lo
    D) ro
    Answer: A) sa — In 'Priya reads rare novels' (ne ve sa lo): reads = ne (shared with the first sentence), rare = ve (shared with the second), novels = lo (shared with the fourth). The leftover code sa is Priya. ro is Ali, the leftover code of the first sentence.
  7. In a code language, 'Ali reads good books' is written as 'fa ne ro gi', 'good books are rare' is written as 'gi tu fa ve', 'Priya reads rare novels' is written as 'ne ve sa lo' and 'novels are good' is written as 'lo tu gi'. Which of the following is the code for 'Ali reads novels'?
    A) ro ne gi
    B) lo ne sa
    C) ro lo ve
    D) lo ro ne
    Answer: D) lo ro ne — From the sentences: Ali = ro, reads = ne and novels = lo, so the code is lo ro ne in some order. gi means good, sa means Priya and ve means rare, so every other group contains a wrong word.
  8. In a code language, 'bright stars shine' is written as 't5r c6s t5d' and 'moon looks bright' is written as 'c6s n4m m5r'. How is 'planet' written in that code?
    A) o6u
    B) q6s
    C) q6u
    D) q5s
    Answer: B) q6s — Each word is coded as: the letter after its first letter, then the number of letters, then the letter before its last letter (bright gives c, 6, s; moon gives n, 4, m). For planet: p becomes q, it has 6 letters, and t becomes s, giving q6s. o6u moves both letters the wrong way, q6u moves the last letter forward, and q5s miscounts the letters.
  9. In a code language, 'green river flows' is written as 'i2r t2n u1s' and 'river bank' is written as 'y1k i2r'. How is 'mountain' written in that code?
    A) n8n
    B) l4n
    C) n4m
    D) n4n
    Answer: D) n4n — Each code is the opposite letter of the first letter (A with Z, B with Y and so on), the number of vowels, and the word's own last letter: green gives t, 2, n and bank gives y, 1, k. For mountain: m pairs with n, the vowels o, u, a and i make 4, and the last letter is n, so n4n. n8n counts all letters instead of vowels, l4n takes the previous letter instead of the opposite, and n4m changes the last letter.
  10. Letters and their codes: A = 7, B = @, D = 3, E = %, G = 6, H = 9, K = #, M = 2, P = &, R = 5, T = 4, U = 8. Conditions (apply whichever one fits): (i) If the first letter is a vowel and the last letter is a consonant, the codes of the first and last letters are interchanged. (ii) If the first and last letters are both consonants, the first letter is given the code of the last letter. (iii) If the first letter is a consonant and the last letter is a vowel, both of them are coded as 0. If no condition fits, each letter is coded as in the table. What is the code for ETRMBK?
    A) #452@%
    B) %452@#
    C) #452@#
    D) 0452@0
    Answer: A) #452@% — E is a vowel and K is a consonant, so condition (i) applies: the codes of E (%) and K (#) swap places. The middle letters T, R, M, B keep 4, 5, 2, @, giving #452@%. %452@# ignores the condition, #452@# copies the last code to the front as in (ii), and 0452@0 uses rule (iii), which needs a consonant first and a vowel last.
  11. Letters and their codes: A = 7, B = @, D = 3, E = %, G = 6, H = 9, K = #, M = 2, P = &, R = 5, T = 4, U = 8. Conditions (apply whichever one fits): (i) If the first letter is a vowel and the last letter is a consonant, the codes of the first and last letters are interchanged. (ii) If the first and last letters are both consonants, the first letter is given the code of the last letter. (iii) If the first letter is a consonant and the last letter is a vowel, both of them are coded as 0. If no condition fits, each letter is coded as in the table. What is the code for KAPTDE?
    A) #7&43%
    B) %7&43#
    C) 07&430
    D) %7&43%
    Answer: C) 07&430 — K is a consonant and E is a vowel, so condition (iii) applies and both the first and last letters become 0, giving 07&430. #7&43% codes every letter straight from the table, %7&43# swaps the end codes as in (i), and %7&43% copies the last code to the first as in (ii); none of those conditions fits this word.
  12. Letters and their codes: A = 7, B = @, D = 3, E = %, G = 6, H = 9, K = #, M = 2, P = &, R = 5, T = 4, U = 8. Conditions (apply whichever one fits): (i) If the first letter is a vowel and the last letter is a consonant, the codes of the first and last letters are interchanged. (ii) If the first and last letters are both consonants, the first letter is given the code of the last letter. (iii) If the first letter is a consonant and the last letter is a vowel, both of them are coded as 0. If no condition fits, each letter is coded as in the table. What is the code for HUGMAR?
    A) 986275
    B) 586275
    C) 586279
    D) 086270
    Answer: B) 586275 — H and R are both consonants, so condition (ii) applies: H takes R's code, 5. The word becomes 5 8 6 2 7 5, that is 586275. 986275 ignores the condition, 586279 swaps the end codes as in (i), and 086270 uses rule (iii), which needs a vowel at the end.
  13. In a certain code, TEMPLE is written as SFLOKF and RIVER is written as QJUFQ. How is ORANGE written in that code?
    A) PQBMFF
    B) PSBOHF
    C) NSZOHD
    D) PQBMHF
    Answer: A) PQBMFF — Comparing letters shows that every vowel moves one place forward (E to F, I to J) and every consonant moves one place back (T to S, R to Q). ORANGE: O to P, R to Q, A to B, N to M, G to F, E to F, giving PQBMFF. PSBOHF moves every letter forward, NSZOHD reverses the rule, and PQBMHF moves G forward instead of back.
  14. A code works as follows. If a word has an even number of letters, it is written in reverse order and then every letter is moved one place forward in the alphabet. If it has an odd number of letters, its first and last letters swap places and each of the remaining letters moves one place back. Using this code, STONE becomes ESNMS. What does GARDEN become?
    A) FZQCDM
    B) OFESBH
    C) HBSEFO
    D) NEDRAG
    Answer: B) OFESBH — GARDEN has 6 letters, an even number, so reverse it to NEDRAG and move each letter one place forward: N to O, E to F, D to E, R to S, A to B, G to H, giving OFESBH. HBSEFO shifts forward without reversing, FZQCDM shifts back without reversing, and NEDRAG reverses without shifting.
  15. In a code language, 'Ali reads good books' is written as 'fa ne ro gi', 'good books are rare' is written as 'gi tu fa ve', 'Priya reads rare novels' is written as 'ne ve sa lo' and 'novels are good' is written as 'lo tu gi'. Which group of words is written as 'ne gi fa'?
    A) Ali good books
    B) reads rare books
    C) reads good novels
    D) reads good books
    Answer: D) reads good books — From the four sentences: good = gi and books = fa (good is the only word shared by the first, second and fourth sentences), reads = ne (shared by the first and third). So 'ne gi fa' means 'reads good books'. Ali is ro, rare is ve and novels is lo, so the other groups would need codes that are not in 'ne gi fa'.

Questions

How do I know when a code cannot be determined?

When a word appears only in sentences where another word also appears and nowhere else, the two codes can swap places without breaking any clue. Then the code cannot be fixed.

Does the order of codes ever matter in sentence coding?

Usually not; questions assume the codes are jumbled. Only use order if the question says the codes follow the word order, which is rare.

What rules are common in new-pattern word codes?

The letter before or after the first or last letter, the opposite letter, the number of letters or vowels, and sometimes the word's position in the sentence. Test each idea on two words before trusting it.

How much time should a coding set take?

With practice, a set of five sentence-code questions takes about four minutes: two to build the code table and a few seconds for each question after that.