Questions tagged [alphabet]
The alphabet tag has no usage guidance.
318
questions
-1
votes
3
answers
172
views
Calling a recursive function using the alphabet
I'm supposed to write a statement that calls the recursive function backwards_alphabet() with input starting_letter. I've figured out how to do that. The problem is that at the end of my code it ...
-1
votes
2
answers
29
views
Adapting the SVG of a Phoenician letter for a HTML site
I'm trying to adapt an open-source SVG created in Inkscape so it can be embedded on my experimental website in the same I've done so with other SVGs from the same alphabet.
Phoenician "mem" ...
-3
votes
1
answer
184
views
Bard in react-native
Can I implement Bard in react-native project?
I searched on Google and chatGPT as well to find that can use BardAPI in react-native project, so I didn't find any article or any things related to this. ...
0
votes
0
answers
17
views
how to check if there is any alphabet character after @ and before .com in javascript [duplicate]
I'm programming a register system in javascript, and the problem is that i want to check if the email format is correct so i write if(regEmail.includes("@" + ".com")) but the ...
0
votes
0
answers
38
views
Pyautogui.write() works for punctuations but not alphabet characters on windows
I am trying to type the website name using Pyautogui.write(). However, when I tried the below test code, it only typed './?@#$' on the windows machine. But it did work on mac. I have no clue why this ...
3
votes
5
answers
335
views
sequential alphanumeric string generation with 2 alpha and 7 numeric digits
I want to generate alphanumeric number in such way that its first two character represents the alpha and rest 7 digits represent numeric and it should be sequential. for example it should start like ...
0
votes
0
answers
42
views
feature extraction on real data isolet dataset
it is my first time dealing with audio data and i'm having a bit of trouble extracting the freature of a real sample audio to pass on the model for evaluation especially that i didn't really ...
-1
votes
2
answers
45
views
How to match complete words for acronym using regex?
I want to only get complete words from acronyms with ( ) around them.
For example, there is a sentence
'Lung cancer screening (LCS) reduces NSCLC mortality';
->I want to get 'Lung cancer screening' ...
0
votes
2
answers
85
views
PowerShell or CMD - Find and Increment alphabet letter of files (revision management)
I need some help to automate rename files in a current directory.
The following files that can exits in the directory is for example:
AAA111A.txt
AAA111A.pdf
AAA111A.jpg
BBB222B.jpg
BBB222B.pdf
Where ...
1
vote
2
answers
46
views
Print to the console the entire alphabet of uppercase and lowercase (A to Z, a to z) with custom foreground and background colors
How can I print all the alphabet characters (A to Z, a to z)?
I did the following. It lets me print all the characters from A-Z and a-z but the problem is that I get the in-between ASCII characters ...
0
votes
1
answer
77
views
Rename Lithuanian alphabet in R
I would like to rename() or combine() different speakers' names in the same observation. For example, I have a variable called "speaker" with several speakers' names with Lithuanian ...
1
vote
2
answers
111
views
Ukrainian letters are poorly sorted
The problem is that when using order_by(), Ukrainian letters are incorrectly sorted alphabetically, that is, before "а", "б" is placed "і" and "є".
-1
votes
2
answers
210
views
What is the best way to replace a letter with the letter following it in the alphabet in Java?
I'm a programming newbie and I am doing a coderbyte exercise that says "
Replace every letter in the string with the letter following it in the alphabet (ie. c becomes d, z becomes a)"
i'm ...
0
votes
1
answer
33
views
create a list by multiplying list, indexes remain attached
I am trying to solve this: https://leetcode.com/problems/letter-combinations-of-a-phone-number/
but when appending the value to the first list inside the list it append it also to the 4th and the 7th ...
-2
votes
3
answers
204
views
How to recursively print the alphabet in Javascript?
Seen some solutions using a regular for loop, but was interested in the recursive way
maybe we can define the arr as the alphabet
let arr = ['abcdefghij(...rest_of_alphabet)`]
found this on the ...
0
votes
4
answers
2k
views
Check whether a character is an alphabet, digit or special character- PYTHON
Ques - Check whether a character is an alphabet, digit or special character
I have written a python code solution and it is working well. But when I input ("@"), I get the output as an ...
0
votes
1
answer
34
views
Infinite loop not checking for string size and belonging to alphabet
I've been trying to make a check for if the input (guesses) belongs to the alphabet and if it's a single character for my simple hangman game, but when I try to run the program it just ignores the ...
0
votes
0
answers
43
views
how to properly read Nordic alphabets like Ø
I just started data analysis with R and the dataset I'm currently working with reads Cédric as C<e9>dric.
What's a way I can get read all names perfectly without having to correct them ...
0
votes
1
answer
606
views
How to sort a list by number first in descending order and then by alphabet in ascending order
I have a list
ff = [('o', 2), ('l', 1), ('e', 1), ('g', 2)]
and i want to sort it in such a way in which it get sorted by number in descending order and if any element have same number then it get ...
-2
votes
2
answers
606
views
Cycle through letters of the alphabet in a loop and assign values to them in Python? [duplicate]
Here the number of variables (which correspond to numfactors) are assigned manually to each letter of the alphabet. So the first variable is A and it gets assigned the value of an array slice (paths[...
3
votes
1
answer
373
views
Regular expression for three or more consecutive letters of the alphabet
I want to write a regular expression that will find instances of three or more consecutive letters of the alphabet. I'm planning to use this regex with both JavaScript and grep. This seems like ...
0
votes
2
answers
266
views
Increment alphabetical string in Ruby on rails
Task I want to solve:
Write a program that takes a string, will perform a transformation and return it.
For each of the letters of the parameter string switch it by the next one in alphabetical order.
...
-1
votes
1
answer
42
views
encrypt alphabet to unicode does not work
This is project from freecodecamp where a string is encrypt by the values of the letters are shifted by 13 places
All letters will be uppercase. Do not transform any non-alphabetic character (i.e. ...
-2
votes
1
answer
38
views
why are we subtracting the code from 64 on the bottom if statment, I am confused with that line
Just wondering about the line after the if statement and why are we subtracting 64 or using 64 in the code for the string.
function alphabetPosition(text) {
var result = "";
for (var i = ...
0
votes
0
answers
651
views
Replace With Alphabet Position
Write a function that is given a string, replace every letter with its position in the alphabet. If anything in the text isn't a letter, ignore it and don't return it. a being 1, b being 2, etc.As an ...
0
votes
1
answer
298
views
adding alphabet letters for values with a do loop in sas
data test;
length val $15;
input obs val $ pvalue;
cards;
1 demog 0.8812
2 ae 0.7112
3 dispostion 0.8234
4 exposure 0.7788
;
run;
I would like to get a new dataset with pvalue like 0.8812a, 0.7112b,...
0
votes
1
answer
634
views
Replace every letter with its position in the alphabet for a given string
The first step, I changed the string to a lowercase, after that I removed all the non letters from the string, now I am struggling to replace each letter with the alphabet position.
does anyone know ...
0
votes
2
answers
876
views
How Can I Split string every nth character, And Display like This?
I want to print the following string:
1234567890
as follows:
123
456
789
0
How can I do this in Python?
0
votes
2
answers
196
views
How do I extract a maximum of 14 names out of a big list that, together, have all the letters of the alphabet?
I am a new programmer. As the title states, this is my attempt to get this done:
def alphabet_set(countrylist):
alphabetical_list = []
alphabet = 'abcdefghijklmnopqrstuvwxyz'
for ...
0
votes
1
answer
99
views
Shift alphabetical characters in string
Let's say I have a string:
s <- 'hello world zzz'
I want to shift the alphabetical characters up by one.
So:
a becomes b
b becomes c
c becomes d
d becomes e
and so on...
w becomes x
x ...
0
votes
1
answer
65
views
How do I fix problems with letters from a different alphabet on R? [duplicate]
When I first wrote my script, letters such as 'ç' and 'ã - very commonly used in portuguese - were fine. So if I wrote, for example, the word 'vagão' in portuguese, that's how it would read it. But ...
0
votes
1
answer
331
views
Print non used character in alphabet
I'm trying to create a program in C that prints the letters from alphabet that are not in gussed_character. All unused letters are saved in available_character.
Code:
#include <stdio.h>
#include ...
1
vote
0
answers
81
views
generate unique hash from strings composed of english smaller case letters of length upto 4
I want to generate unique hash from strings composed of English smaller case letters of length upto 4, so that I can store those unique hashes in my has map (STL unordered map)
For example, strings ...
1
vote
1
answer
1k
views
How to shift letters in the alphabet using python? [duplicate]
I want to shift each letter in the alphabet (e.g. a→b, b→c,...) using python. When you write a word like "Car", it shifts the letters and the new word is "Dbs"(C→D, a→b, r→s). Here ...
0
votes
1
answer
66
views
How can I save strings from different alphabets to SQL?
I am developing a backend project for my mobile apps. I have users from Europa, China, Israel, ... on my app. The app needs users' info like name.
I have a "name" column on the "users&...
0
votes
1
answer
397
views
How to create a substitution cipher in which the encryption alphabet changes everytime?
public static String encrypt(String plaintext, String encryptalpha) {
char[] alpha = { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', '...
1
vote
2
answers
113
views
some problems about sort() method on python
I have a two dimensional list and I want to sort them priority.
my list like; [0] is number, [1] is name-surname, [2] is degree .. etc
And the names are include non-english characters like "Ç İ Ş&...
0
votes
4
answers
753
views
Alphabet Layers In Python
How to multiply layers without ankwardly repeating elif lines? Cannot get += 1 working. Or perhaps different string approach? I'm certainly new in Python.
layer = int(input("Give a number between ...
0
votes
2
answers
893
views
Alphabet Soup -Determine if you can write your message with the letters found in your bowl of soup
I have been given a task to solve in python, need a help as I am not able to get an output, below is the question: -
Everyone loves alphabet soup. And of course, you want to know if you can construct ...
-1
votes
1
answer
244
views
Sort array alphabetical as nordic/locale order
I'm sorry - im learning PHP. Looking for help to sort array by name - but as my locale alphabet.
I would like to sort array as nordic alpabet and I would want to leave rows with numbers last, I tried ...
0
votes
2
answers
540
views
What is the best way to create a substitution cipher to map a string of normal alphabet to a string of jumbled alphabet, to encrypt a message?
public static String EncodeString() {
String plaintext = "Hello Jon";
String alphabet = "abcdefghijklmnopqrstuvwxyz";
String Substituion = "...
-3
votes
2
answers
477
views
I want to get Int value range 0-25 from a-z in Swift. And also reversely [duplicate]
I want to convert alphabets to numbers, in this way: a=0, b=1, c=2 ... z=25 in Swift.
I have an array of integers range 0-25. I want to get alphabets from the Int array.
If I have an array of ...
1
vote
1
answer
897
views
Quill Editor Alphabetic List
Is there anybody that already got an alphabetic list working on Quill Editor?
For now you can only List with numeric
1.
2.
3.
I need :
a.
b.
c.
I could replace with JS but thats not the cleanest thing....
0
votes
1
answer
151
views
Creating a CFG that satisfies rules
So I have the following problem, I need to create a context free unambiguous grammar to meet the following criteria.
The alphabet will be { (, a, b, ), £ }, every correct string must include;
a ...
0
votes
1
answer
41
views
Replacing given letter with a specific number value in Java [duplicate]
I wanted to pass a letter as a String to this method and it should give back the corresponding number (as String) stored in the same index as in the letterDispari array but in the numberDispari array.
...
-1
votes
2
answers
506
views
Python vowels constant
Is there a Python library that contains a variable which contains vowels, e.g. 'aeiou', ['a', 'e', 'i', 'o', 'u'] or something like that? in the string library there is ascii_lowercase variable with ...
0
votes
1
answer
1k
views
How can i sort a string in alphabetical order in python
I've been trying to sort a string in alphabetical order and got stuck. I know that the sort function exists on python but i cant use it. Cant even use the .join method as well. Gotta do it all using ...
0
votes
2
answers
164
views
My program just will not recognize letters from alphabetical arrays
So this program won't recognize letters from the arrays of lowercase and uppercase alphabets. I've wasted wayy too many hours on trying to figure this out but I just don't get it.
It seems to ...
1
vote
1
answer
463
views
Implementing an alphabet in C++
I'm making a code for cipher that reads alphabet in it's binary code. Is there a way to implement custom alphabet (not using ASCII)? For example alphabet={a,b,c,d,e,...,z,],[,.,..., ,-} and for each ...
-1
votes
1
answer
157
views
Ruby Alphabet sorting
I was going through some questions on HackerRank, that need to sort data a substring alphabetically "the shortest comes first"
for example
["cd","cc","cca", &...